Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync documentation for hyper_util::server::conn::auto::Http1Builder::header_read_timeout with hyper's hyper::server::conn::http1::Builder::header_read_timeout. #137

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/server/conn/auto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,12 @@ impl<E> Http1Builder<'_, E> {
/// Set a timeout for reading client request headers. If a client does not
/// transmit the entire header within this time, the connection is closed.
///
/// Default is None.
/// Requires a [`Timer`] set by [`Http1Builder::timer`] to take effect. Panics if `header_read_timeout` is configured
/// without a [`Timer`].
///
/// Pass `None` to disable.
aaronriekenberg marked this conversation as resolved.
Show resolved Hide resolved
///
/// Default is 30 seconds.
aaronriekenberg marked this conversation as resolved.
Show resolved Hide resolved
pub fn header_read_timeout(&mut self, read_timeout: Duration) -> &mut Self {
self.inner.http1.header_read_timeout(read_timeout);
self
Expand Down