Crates.io | httprs |
lib.rs | httprs |
version | 0.2.4 |
source | src |
created_at | 2024-02-10 16:46:53.522889 |
updated_at | 2024-11-07 09:46:17.811953 |
description | A fast simple command line http server tool |
homepage | |
repository | https://github.com/10fish/httprs |
max_upload_size | |
id | 1135050 |
size | 106,326 |
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 http://127.0.0.1:9900
httprs
# run in insecure mode
httprs -H 0.0.0.0 -P 10000
# 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
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