Skip to content

Commit

Permalink
feat(server): add Builder::http1_keepalive method
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Aug 10, 2018
1 parent 1e8cd5a commit b459adb
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 @@ -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`.
Expand Down

0 comments on commit b459adb

Please sign in to comment.