File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 5
5
//! are not handled at this level. This module provides the building blocks to
6
6
//! customize those things externally.
7
7
//!
8
- //! This module is split by HTTP version. Both work similarly, but do have
9
- //! specific options on each builder.
8
+ //! This module is split by HTTP version, providing a connection builder for
9
+ //! each. They work similarly, but they each have specific options.
10
+ //!
11
+ //! If your server needs to support both versions, an auto connection builder is
12
+ //! provided in the [`hyper-util`](https://github.com/hyperium/hyper-util/tree/master)
13
+ //! crate. This builder wraps the HTTP/1 and HTTP/2 connection builders from this
14
+ //! module, allowing you to set configuration for both. The builder will then check
15
+ //! the version of the incoming connection and serve it accordingly.
10
16
11
17
#[ cfg( feature = "http1" ) ]
12
18
pub mod http1;
Original file line number Diff line number Diff line change @@ -35,6 +35,6 @@ pub trait Service<Request> {
35
35
/// - It's clearer that Services can likely be cloned
36
36
/// - To share state across clones you generally need Arc<Mutex<_>>
37
37
/// that means you're not really using the &mut self and could do with a &self
38
- /// To see the discussion on this see: https://github.com/hyperium/hyper/issues/3040
38
+ /// To see the discussion on this see: < https://github.com/hyperium/hyper/issues/3040>
39
39
fn call ( & self , req : Request ) -> Self :: Future ;
40
40
}
You can’t perform that action at this time.
0 commit comments