summaryrefslogtreecommitdiff
path: root/vendor/hyper/src/server/conn/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/hyper/src/server/conn/mod.rs')
-rw-r--r--vendor/hyper/src/server/conn/mod.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/hyper/src/server/conn/mod.rs b/vendor/hyper/src/server/conn/mod.rs
new file mode 100644
index 00000000..54b309e8
--- /dev/null
+++ b/vendor/hyper/src/server/conn/mod.rs
@@ -0,0 +1,20 @@
+//! Server connection API.
+//!
+//! The types in this module are to provide a lower-level API based around a
+//! single connection. Accepting a connection and binding it with a service
+//! are not handled at this level. This module provides the building blocks to
+//! customize those things externally.
+//!
+//! This module is split by HTTP version, providing a connection builder for
+//! each. They work similarly, but they each have specific options.
+//!
+//! If your server needs to support both versions, an auto-connection builder is
+//! provided in the [`hyper-util`](https://github.com/hyperium/hyper-util/tree/master)
+//! crate. This builder wraps the HTTP/1 and HTTP/2 connection builders from this
+//! module, allowing you to set configuration for both. The builder will then check
+//! the version of the incoming connection and serve it accordingly.
+
+#[cfg(feature = "http1")]
+pub mod http1;
+#[cfg(feature = "http2")]
+pub mod http2;