No description
Find a file
Damjan Georgievski 091f203317 use a non default logger that doesn't log the timestamp
the env_logger already adds the timestamp, so it was redundant

before:
`INFO 2018-07-21T12:57:49Z: actix_web::middleware::logger: 127.0.0.1:42112 [21/Jul/2018:14:57:49 +0200] "GET / HTTP/1.1" 200 858 "-" "curl/7.61.0" 0.000686`

after:
`INFO 2018-07-21T13:03:20Z: actix_web::middleware::logger: 127.0.0.1:42154 "GET / HTTP/1.1" 200 858 "-" "curl/7.61.0" 0.000367`
2018-07-21 15:13:30 +02:00
src use a non default logger that doesn't log the timestamp 2018-07-21 15:13:30 +02:00
.gitignore initial idea commited 2018-07-04 13:57:42 +02:00
Cargo.toml implement a default logger 2018-07-21 14:59:47 +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.