hyper/server/conn/mod.rs
1//! Server connection API.
2//!
3//! The types in this module are to provide a lower-level API based around a
4//! single connection. Accepting a connection and binding it with a service
5//! are not handled at this level. This module provides the building blocks to
6//! customize those things externally.
7//!
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.
16
17#[cfg(feature = "http1")]
18pub mod http1;
19#[cfg(feature = "http2")]
20pub mod http2;