feat(server): add http1_max_buf_size in the server::Builder (#1761)

Similarly to `client::Builder::http1_max_buf_size`.
This commit is contained in:
luben karavelov
2019-02-11 18:47:19 +00:00
committed by Sean McArthur
parent e52f80df5a
commit 3e9782c2a9

View File

@@ -302,6 +302,14 @@ impl<I, E> Builder<I, E> {
self
}
/// Set the maximum buffer size.
///
/// Default is ~ 400kb.
pub fn http1_max_buf_size(mut self, val: usize) -> Self {
self.protocol.max_buf_size(val);
self
}
/// Sets the `Executor` to deal with connection tasks.
///
/// Default is `tokio::spawn`.