1 | //! HTTP Client |
2 | //! |
3 | //! hyper provides HTTP over a single connection. See the [`conn`] module. |
4 | //! |
5 | //! ## Examples |
6 | //! |
7 | //! * [`client`] - A simple CLI http client that requests the url passed in parameters and outputs the response content and details to the stdout, reading content chunk-by-chunk. |
8 | //! |
9 | //! * [`client_json`] - A simple program that GETs some json, reads the body asynchronously, parses it with serde and outputs the result. |
10 | //! |
11 | //! [`client`]: https://github.com/hyperium/hyper/blob/master/examples/client.rs |
12 | //! [`client_json`]: https://github.com/hyperium/hyper/blob/master/examples/client_json.rs |
13 | |
14 | #[cfg (test)] |
15 | mod tests; |
16 | |
17 | cfg_feature! { |
18 | #![any(feature = "http1" , feature = "http2" )] |
19 | |
20 | pub mod conn; |
21 | pub(super) mod dispatch; |
22 | } |
23 | |