A convenient library for embedding http servers into Rust projects.
- Not working on this repo anymore. Please see my new monorepo at https://github.com/WebeWizard/lib-webe which contains another http server library (and more).
- keep-alive
- 'get' response
- gzip content encoding
- deflate content encoding
- chunked transfer encoding
Currently coded against Rust nightlies.
Test the provided example server by running 'cargo test' and then adding files you want to serve to the 'target/debug' directory. Server is currently bound to 127.0.0.1 ( localhost ) port 8080.
- Deflate content encoding is now available. Encoders now have weights associated with them. The default is 100u8, Heavier weights take preference over lower weights. Set two encoders with equal weight to use them both at once.
- Switched internal tcp streams over to Rust's new IO api.