Skip to content

Commit

Permalink
feat(server): add http1_max_buf_size in the server::Builder (#1761)
Browse files Browse the repository at this point in the history
Similarly to `client::Builder::http1_max_buf_size`.
  • Loading branch information
luben authored and seanmonstar committed Feb 11, 2019
1 parent e52f80d commit 3e9782c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 3e9782c

Please sign in to comment.