Crates.io Crates.io MIT/Apache 2.0

http-serve-folder

A command line configurable, single executable server for hosting a folder over HTTP. Only intended for use in local development/testing.

I created this because no minimal servers I found supported setting custom response headers, and I needed to be able to test locally while using SharedArrayBuffer.

``` http-serve-folder 0.1.0 Paul Hansen mail@paul.rs A configurable HTTP server that hosts a folder. Suitable for local testing.

USAGE: http-serve-folder[.exe] [OPTIONS] [DIR]

ARGS:

The folder you want to host

OPTIONS: -h, --help Print help information -H, --header Headers to add to all file responses -i, --ip_address The IP Address to bind to [default: 127.0.0.1] -l, --log The level of logging to display [default: info] [possible values: debug, info, warn, error, off] -p, --port The port number to bind to [default: 4040] -V, --version Print version information ```

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.