No description
Find a file
2024-11-07 14:16:29 +01:00
.github/workflows update checkout action to v4 2024-05-17 18:49:41 +02:00
src Some small changes to make it work for my uses 2024-11-07 14:16:29 +01:00
.gitignore initial idea commited 2018-07-04 13:57:42 +02:00
Cargo.lock Some small changes to make it work for my uses 2024-11-07 14:16:29 +01:00
Cargo.toml Some small changes to make it work for my uses 2024-11-07 14:16:29 +01:00
LICENSE initial idea commited 2018-07-04 13:57:42 +02:00
README.md update build-status badge to github actions 2020-09-20 03:59:52 +02:00

Build Status

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 <ADDRESS>       Specify alternate bind address [default: 0.0.0.0]
        --chdir <DIRECTORY>    Specify directory to server [default: .]

ARGS:
    <PORT>    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: