No description
Find a file
Damjan Georgievski 38434ddaf1 actix-web supports content-encoding:gzip by default
data will be compressed on the wire automatically, so no need to add the complexity of compression
2018-07-21 18:42:54 +02:00
src add a favicon 2018-07-21 18:41:02 +02:00
.gitignore initial idea commited 2018-07-04 13:57:42 +02:00
Cargo.toml implement cli arguments with clap 2018-07-21 17:45:24 +02:00
LICENSE initial idea commited 2018-07-04 13:57:42 +02:00
README.md actix-web supports content-encoding:gzip by default 2018-07-21 18:42:54 +02:00

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
  • better auto index
  • 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.