File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -690,8 +690,13 @@ impl<E> Http1Builder<'_, E> {
690
690
/// Set a timeout for reading client request headers. If a client does not
691
691
/// transmit the entire header within this time, the connection is closed.
692
692
///
693
- /// Default is None.
694
- pub fn header_read_timeout ( & mut self , read_timeout : Duration ) -> & mut Self {
693
+ /// Requires a [`Timer`] set by [`Http1Builder::timer`] to take effect. Panics if `header_read_timeout` is configured
694
+ /// without a [`Timer`].
695
+ ///
696
+ /// Pass `None` to disable.
697
+ ///
698
+ /// Default is currently 30 seconds, but do not depend on that.
699
+ pub fn header_read_timeout ( & mut self , read_timeout : impl Into < Option < Duration > > ) -> & mut Self {
695
700
self . inner . http1 . header_read_timeout ( read_timeout) ;
696
701
self
697
702
}
You can’t perform that action at this time.
0 commit comments