Skip to content

Commit 889fa2d

Browse files
authored
feat(client): remove hyper::client::server (#2940)
BREAKING CHANGE: Tower `Service` utilities will exist in `hyper-util`.
1 parent cd32454 commit 889fa2d

File tree

6 files changed

+0
-198
lines changed

6 files changed

+0
-198
lines changed

Cargo.toml

-5
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,6 @@ name = "state"
181181
path = "examples/state.rs"
182182
required-features = ["full"]
183183

184-
[[example]]
185-
name = "tower_client"
186-
path = "examples/tower_client.rs"
187-
required-features = ["full"]
188-
189184
[[example]]
190185
name = "tower_server"
191186
path = "examples/tower_server.rs"

examples/tower_client.rs

-59
This file was deleted.

src/client/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,4 @@ cfg_feature! {
4040
pub mod conn;
4141
pub(super) mod dispatch;
4242
mod pool;
43-
pub mod service;
4443
}

src/client/service.rs

-89
This file was deleted.

src/service/make.rs

-39
This file was deleted.

src/service/mod.rs

-5
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
//!
1111
//! - `HttpService`: This is blanketly implemented for all types that
1212
//! implement `Service<http::Request<B1>, Response = http::Response<B2>>`.
13-
//! - `MakeConnection`: A `Service` that returns a "connection", a type that
14-
//! implements `AsyncRead` and `AsyncWrite`.
1513
//!
1614
//! # HttpService
1715
//!
@@ -26,16 +24,13 @@
2624
pub use tower_service::Service;
2725

2826
mod http;
29-
mod make;
3027
#[cfg(all(any(feature = "http1", feature = "http2"), feature = "client"))]
3128
mod oneshot;
3229
mod util;
3330

3431
#[cfg(all(any(feature = "http1", feature = "http2"), feature = "server"))]
3532
pub(super) use self::http::HttpService;
3633
#[cfg(all(any(feature = "http1", feature = "http2"), feature = "client"))]
37-
pub(super) use self::make::MakeConnection;
38-
#[cfg(all(any(feature = "http1", feature = "http2"), feature = "client"))]
3934
pub(super) use self::oneshot::{oneshot, Oneshot};
4035

4136
pub use self::util::service_fn;

0 commit comments

Comments
 (0)