| 1 | //! Lower-level client connection API. |
| 2 | //! |
| 3 | //! The types in this module are to provide a lower-level API based around a |
| 4 | //! single connection. Connecting to a host, pooling connections, and the like |
| 5 | //! are not handled at this level. This module provides the building blocks to |
| 6 | //! customize those things externally. |
| 7 | //! |
| 8 | //! If you are looking for a convenient HTTP client, then you may wish to |
| 9 | //! consider [reqwest](https://github.com/seanmonstar/reqwest) for a high level |
| 10 | //! client or [`hyper-util`'s client](https://docs.rs/hyper-util/latest/hyper_util/client/index.html) |
| 11 | //! if you want to keep it more low level / basic. |
| 12 | //! |
| 13 | //! ## Example |
| 14 | //! |
| 15 | //! See the [client guide](https://hyper.rs/guides/1/client/basic/). |
| 16 | |
| 17 | #[cfg (feature = "http1" )] |
| 18 | pub mod http1; |
| 19 | #[cfg (feature = "http2" )] |
| 20 | pub mod http2; |
| 21 | |
| 22 | pub use super::dispatch::TrySendError; |
| 23 | |