feat(http1): Make HTTP/1 support an optional feature
cc #2251 BREAKING CHANGE: This puts all HTTP/1 methods and support behind an `http1` cargo feature, which will not be enabled by default. To use HTTP/1, add `features = ["http1"]` to the hyper dependency in your `Cargo.toml`.
This commit is contained in:
		| @@ -39,11 +39,14 @@ pub use tower_service::Service; | ||||
|  | ||||
| mod http; | ||||
| mod make; | ||||
| #[cfg(any(feature = "http1", feature = "http2"))] | ||||
| mod oneshot; | ||||
| mod util; | ||||
|  | ||||
| pub(crate) use self::http::HttpService; | ||||
| #[cfg(any(feature = "http1", feature = "http2"))] | ||||
| pub(crate) use self::make::{MakeConnection, MakeServiceRef}; | ||||
| #[cfg(any(feature = "http1", feature = "http2"))] | ||||
| pub(crate) use self::oneshot::{oneshot, Oneshot}; | ||||
|  | ||||
| pub use self::make::make_service_fn; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user