No description
Find a file
Дамјан Георгиевски c91c994c8c actix_web reexports actix
Re-export actix::prelude::* as actix_web::actix module.

So no need to explicitly import it or add it in Cargo.toml
2018-07-19 20:03:17 +02:00
src actix_web reexports actix 2018-07-19 20:03:17 +02:00
.gitignore initial idea commited 2018-07-04 13:57:42 +02:00
Cargo.toml actix_web reexports actix 2018-07-19 20:03:17 +02:00
LICENSE initial idea commited 2018-07-04 13:57:42 +02:00
README.md use futures::sync::mpsc::channel() with 4MB buffer 2018-07-07 23:49:46 +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)
  • maybe compress

Usage [TODO]:

http-server [--bind ADDRESS] [--chdir DIRECTORY] [port]

  port                  Specify alternate port [default: 8000]
  --bind ADDRESS        Specify alternate bind address [default: all interfaces]
  --chdir DIRECTORY     Specify directory to server [default: current directory]

FAQ

  • Q: why .tar and not .zip? A: you can't stream a zip file efficiently, it needs to write back in a file.