feat(server): add Builder::http1_keepalive method

This commit is contained in:
Sean McArthur
2018-08-10 12:49:43 -07:00
parent 1e8cd5aaa6
commit b459adb43a

View File

@@ -177,6 +177,14 @@ impl<I> Builder<I> {
}
}
/// Sets whether to use keep-alive for HTTP/1 connections.
///
/// Default is `true`.
pub fn http1_keepalive(mut self, val: bool) -> Self {
self.protocol.keep_alive(val);
self
}
/// Sets whether HTTP/1 is required.
///
/// Default is `false`.