File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,25 @@ pin_project_lite::pin_project! {
44
44
///
45
45
/// **Note**: The default values of options are *not considered stable*. They
46
46
/// are subject to change at any time.
47
+ ///
48
+ /// # Example
49
+ ///
50
+ /// ```
51
+ /// # use std::time::Duration;
52
+ /// # use hyper::server::conn::http1::Builder;
53
+ /// # fn main() {
54
+ /// let mut http = Builder::new();
55
+ /// // Set options one at a time
56
+ /// http.header_read_timeout(Duration::from_millis(200));
57
+ ///
58
+ /// // Or, chain multiple options
59
+ /// http.keep_alive(false).title_case_headers(true).max_buf_size(8192);
60
+ ///
61
+ /// # }
62
+ /// ```
63
+ ///
64
+ /// Use [`Builder::serve_connection`](struct.Builder.html#method.serve_connection)
65
+ /// to bind the built connection to a service.
47
66
#[ derive( Clone , Debug ) ]
48
67
pub struct Builder {
49
68
timer : Time ,
You can’t perform that action at this time.
0 commit comments