While working on the docs I wanted to be able to serve them quickly, but didn’t have a Rust-based tool for it, so I wrote basic-http-server as an excuse to play with rotor. It serves static files out of the current directory over HTTP.
Here is it’s
USAGE: basic-http-server [FLAGS] [OPTIONS] [ARGS] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: -a, --addr <ADDR> Sets the IP:PORT combination (default "127.0.0.1:4000") ARGS: ROOT Sets the root dir (default ".")
I’ve had difficulty measuring how fast it is. When I measure with
wrk the results seem good, but with
ab all requests timeout. I suspect that’s a bug in rotor-http, but don’t know.