http-server icon indicating copy to clipboard operation
http-server copied to clipboard

Capability to run from Config file

Open LeoBorai opened this issue 1 year ago • 0 comments

It would be nice to have a HttpServer.toml we could use to spin up server.

When running the server as:

http-server --config ./HttpServer.toml

The Configuration would be read on init to build server with desired configuration.

  1. Abstract Cli into a Config struct
  2. Provide an initialization process to read HttpServer.toml and build a Config from it
  3. Build server with such implementation

LeoBorai avatar May 15 '23 01:05 LeoBorai