|
1 | 1 | <div>
|
2 |
| - <div align="center" style="display: block; text-align: center;"> |
3 |
| - <img src="https://raw.githubusercontent.com/EstebanBorai/http-server/main/docs/http-logo.png" height="120" width="200" /> |
4 |
| - </div> |
5 | 2 | <h1 align="center">http-server</h1>
|
6 |
| - <h4 align="center">Command-line HTTP Server</h4> |
| 3 | + <h4 align="center">Configurable and simple command-line HTTP server</h4> |
7 | 4 | </div>
|
8 | 5 |
|
9 | 6 | <div align="center">
|
10 | 7 |
|
11 | 8 | [](https://crates.io/crates/http-server)
|
12 | 9 | [](https://docs.rs/http-server)
|
13 |
| -  |
14 |
| -  |
15 |
| -  |
| 10 | +  |
| 11 | +  |
| 12 | +  |
| 13 | +  |
16 | 14 |
|
17 | 15 | </div>
|
18 |
| - |
19 |
| -## Index |
20 |
| - |
21 |
| -- [Installation](#installation) |
22 |
| -- [Usage](#usage) |
23 |
| - - [Flags](#flags) |
24 |
| - - [Options](#options) |
25 |
| -- [Contributing](#contributing) |
26 |
| -- [License](#license) |
27 |
| - - [Contribution](#contribution) |
28 |
| - |
29 |
| -## Installation |
30 |
| - |
31 |
| -```bash |
32 |
| -cargo install http-server |
33 |
| -``` |
34 |
| - |
35 |
| -Check for the installation to be successful. |
36 |
| - |
37 |
| -```bash |
38 |
| -http-server --help |
39 |
| -``` |
40 |
| - |
41 |
| -## Usage |
42 |
| - |
43 |
| -``` |
44 |
| -http-server [FLAGS] [OPTIONS] [root_dir] |
45 |
| -``` |
46 |
| - |
47 |
| -### Flags |
48 |
| - |
49 |
| -Flags are provided without any values. For example: |
50 |
| - |
51 |
| -``` |
52 |
| -http-server --help |
53 |
| -``` |
54 |
| - |
55 |
| -Name | Short | Long | Description |
56 |
| ---- | --- | --- | --- |
57 |
| -Help | `h` | `help` | Prints help information |
58 |
| -Version | `V` | `version` | Prints version information |
59 |
| - |
60 |
| -### Options |
61 |
| - |
62 |
| -Options are provided with a value and also have default values. For example: |
63 |
| - |
64 |
| -``` |
65 |
| -http-server --address 127.0.0.1 |
66 |
| -``` |
67 |
| - |
68 |
| -Name | Short | Long | Description | Default Value |
69 |
| ---- | --- | --- | --- | --- |
70 |
| -Address | `a` | `address` | Address to bind the server | `0.0.0.0` |
71 |
| -Port | `p` | `port` | Port to bind the server | `7878` |
72 |
| - |
73 |
| -## Contributing |
74 |
| - |
75 |
| -Every contribution to this project is welcome. Feel free to open a pull request, |
76 |
| -an issue or just by starting this project. |
77 |
| - |
78 |
| -## License |
79 |
| - |
80 |
| -Licensed under the MIT License |
81 |
| - |
82 |
| -### Contribution |
83 |
| - |
84 |
| -Unless you explicitly state otherwise, any contribution intentionally submitted for |
85 |
| -inclusion in http-server by you, shall be dual licensed as above, without any additional |
86 |
| -terms or conditions. |
0 commit comments