No description
Find a file
Дамјан Георгиевски 62a99f8dc3 use just last part of pathname in the tar
Previously:
```
$ curl -s http://localhost:8000/target/release/build.tar -o - | tar tf -
target/release/build/rayon-core-b8ae11d289218da3
…
```

Now:
```
$ curl -s http://localhost:8000/target/release/build.tar -o - | tar tf -
build/rayon-core-b8ae11d289218da3
…
```
2018-07-07 23:47:35 +02:00
src use just last part of pathname in the tar 2018-07-07 23:47:35 +02:00
.gitignore initial idea commited 2018-07-04 13:57:42 +02:00
Cargo.toml try to build smaller --release binaries 2018-07-05 18:04:11 +02:00
LICENSE initial idea commited 2018-07-04 13:57:42 +02:00
README.md refactor: split code in multiple files 2018-07-05 17:48:40 +02:00

a simple http server like python -m http.server but:

  • written in rust with actix, should be faster
  • allow concurency
  • 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.