mock_http_connector/
hyper.rs

1//! Hyper re-exports for version 0.14 and 1.x
2
3#[cfg(all(feature = "hyper_0_14", feature = "hyper_1"))]
4compile_error!("must select exactly one feature between hyper_0_14 and hyper_1");
5
6#[cfg(not(any(feature = "hyper_0_14", feature = "hyper_1")))]
7compile_error!("must select exactly one feature between hyper_0_14 and hyper_1");
8
9#[cfg(feature = "hyper_0_14")]
10pub(crate) use ::hyper_0_14::{
11    client::connect::{Connected, Connection},
12    header, http, Error, HeaderMap, Method, Request, Response, StatusCode, Uri,
13};
14
15#[cfg(feature = "hyper_1")]
16pub(crate) use ::hyper_1::{
17    header, http, Error, HeaderMap, Method, Request, Response, StatusCode, Uri,
18};
19
20#[cfg(feature = "hyper_1")]
21pub(crate) use hyper_util::client::legacy::connect::{Connected, Connection};