https://github.com/gdamjan/http-server-rs
Simple http server a bit fancier than `python -m http.server` - in Rust + actix-web
https://github.com/gdamjan/http-server-rs
http-server rust
Last synced: 11 months ago
JSON representation
Simple http server a bit fancier than `python -m http.server` - in Rust + actix-web
- Host: GitHub
- URL: https://github.com/gdamjan/http-server-rs
- Owner: gdamjan
- License: mit
- Created: 2018-07-04T12:05:49.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2025-06-16T21:32:25.000Z (about 1 year ago)
- Last Synced: 2025-06-16T22:34:16.247Z (about 1 year ago)
- Topics: http-server, rust
- Language: Rust
- Homepage:
- Size: 179 KB
- Stars: 18
- Watchers: 6
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/gdamjan/http-server-rs/actions/)
A simple http server like `python -m http.server` but:
* written in rust with actix, should be faster
* allow concurrency
* download whole directories in .tar format
* fancier directory listing
* maybe announce itself on mDNS (avahi)
```
USAGE:
http-server [OPTIONS] [PORT]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--bind
Specify alternate bind address [default: 0.0.0.0]
--chdir Specify directory to server [default: .]
ARGS:
Specify alternate port [default: 8000]
```
## FAQ
* Q: why .tar and not .zip? A: ~you can't stream a zip file efficiently, it needs to seek and write to the beggining of a file.~ will see.
## Release builds
```
cargo build --release
strip --strip-unneeded ./target/release/http-server
```
## See also:
* https://github.com/svenstaro/miniserve