| Crates.io | httprs |
| lib.rs | httprs |
| version | 0.2.5 |
| created_at | 2024-02-10 16:46:53.522889+00 |
| updated_at | 2025-06-17 07:00:13.365912+00 |
| description | A fast simple command line http server tool |
| homepage | |
| repository | https://github.com/10fish/httprs |
| max_upload_size | |
| id | 1135050 |
| size | 104,907 |
A fast simple command line http server tool.
If you're looking for a simple, fast, easy-to-use, generic-MIME-types-supporting and partial-content-supporting static file server like me, it might be an option.
Warning: It is currently an experimental project. Use it at your own risk!!!
the main features are as followings, and certainly more will be added:
Download pre-built binaries from release page.
or install with cargo in terminal:
cargo install httprs
# quick start, running on all network interfaces (0.0.0.0:9900)
httprs
# run on specific local IP address
httprs -H 192.168.10.1
# run in secure mode
httprs --secure --key /path/to/keyfile --cert /path/to/certfile
# run with graceful shutdown
httprs --graceful-shutdown
# help for more details
httprs --help
Note: By default, the server binds to
0.0.0.0which means it will listen on all available network interfaces. This makes the server accessible from other devices on the network. If you want to restrict access to localhost only, use-H 127.0.0.1.
If-Range REQUEST HeaderIf-Match REQUEST HeaderRange REQUEST Header: when file size exceeds 50MBAccept-Ranges RESPONSE HeaderContent-Range RESPONSE Header206 - Partial Content416 - Range Not SatisfiableAny advice is welcomed and feel free to make a fork and push your own code.
Thanks to those who are inspiring me, supporting me, providing me with ideas, advice, solutions, and all users who bear much using this.
MIT License