bash
cargo install http-server
Check for the installation to be successful.
bash
http-server --help
http-server [FLAGS] [OPTIONS] [root_dir]
Flags are provided without any values. For example:
http-server --help
Name | Short | Long | Description
--- | --- | --- | ---
Help | h
| help
| Prints help information
Version | V
| version
| Prints version information
Options are provided with a value and also have default values. For example:
http-server --address 127.0.0.1
Name | Short | Long | Description | Default Value
--- | --- | --- | --- | ---
Address | a
| address
| Address to bind the server | 0.0.0.0
Port | p
| port
| Port to bind the server | 7878
Every contribution to this project is welcome. Feel free to open a pull request, an issue or just by starting this project.
Licensed under the MIT License
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in http-server by you, shall be dual licensed as above, without any additional terms or conditions.