feat(lib): switch to non-blocking (asynchronous) IO
BREAKING CHANGE: This breaks a lot of the Client and Server APIs. Check the documentation for how Handlers can be used for asynchronous events.
This commit is contained in:
@@ -49,5 +49,12 @@ header! {
|
||||
}
|
||||
}
|
||||
|
||||
impl TransferEncoding {
|
||||
/// Constructor for the most common Transfer-Encoding, `chunked`.
|
||||
pub fn chunked() -> TransferEncoding {
|
||||
TransferEncoding(vec![Encoding::Chunked])
|
||||
}
|
||||
}
|
||||
|
||||
bench_header!(normal, TransferEncoding, { vec![b"chunked, gzip".to_vec()] });
|
||||
bench_header!(ext, TransferEncoding, { vec![b"ext".to_vec()] });
|
||||
|
||||
Reference in New Issue
Block a user