feat(client): Make client an optional feature
				
					
				
			cc #2223 BREAKING CHANGE: The HTTP client of hyper is now an optional feature. To enable the client, add `features = ["client"]` to the dependency in your `Cargo.toml`.
This commit is contained in:
		| @@ -3,7 +3,10 @@ | ||||
| cfg_http1! { | ||||
|     pub(crate) mod h1; | ||||
|  | ||||
|     pub(crate) use self::h1::{dispatch, Conn, ServerTransaction}; | ||||
|     pub(crate) use self::h1::{Conn, ServerTransaction}; | ||||
|  | ||||
|     #[cfg(feature = "client")] | ||||
|     pub(crate) use self::h1::dispatch; | ||||
| } | ||||
|  | ||||
| cfg_http2! { | ||||
| @@ -31,6 +34,7 @@ pub struct RequestLine(pub http::Method, pub http::Uri); | ||||
|  | ||||
| /// An incoming response message. | ||||
| #[cfg(feature = "http1")] | ||||
| #[cfg(feature = "client")] | ||||
| pub type ResponseHead = MessageHead<http::StatusCode>; | ||||
|  | ||||
| #[derive(Debug)] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user