872dcf758c69e0dec40d9948cd04458c73634ff5
Introduces two Phantom Types, Fresh and Streaming, which indicate the status of a Response. Response::start translates an Response<Fresh> into a Response<Streaming> by writing the StatusCode and Headers. Response<Fresh> allows modification of Headers and StatusCode, but does not allow writing to the body. Response<Streaming> has the opposite privileges.
hyper
An HTTP library for Rust.
Scientific* Benchmarks
running 3 tests
test bench_curl ... bench: 234539 ns/iter (+/- 22228)
test bench_http ... bench: 290370 ns/iter (+/- 69179)
test bench_hyper ... bench: 224482 ns/iter (+/- 95197)
test result: ok. 0 passed; 0 failed; 0 ignored; 3 measured
* No science was harmed in this benchmark.
License
Languages
Rust
94.5%
C
5.2%
Shell
0.3%