Skip to content

Commit

Permalink
feat(client): remove hyper::client::server (#2940)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Tower `Service` utilities will exist in `hyper-util`.
  • Loading branch information
seanmonstar authored Aug 12, 2022
1 parent cd32454 commit 889fa2d
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 198 deletions.
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,6 @@ name = "state"
path = "examples/state.rs"
required-features = ["full"]

[[example]]
name = "tower_client"
path = "examples/tower_client.rs"
required-features = ["full"]

[[example]]
name = "tower_server"
path = "examples/tower_server.rs"
Expand Down
59 changes: 0 additions & 59 deletions examples/tower_client.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ cfg_feature! {
pub mod conn;
pub(super) mod dispatch;
mod pool;
pub mod service;
}
89 changes: 0 additions & 89 deletions src/client/service.rs

This file was deleted.

39 changes: 0 additions & 39 deletions src/service/make.rs

This file was deleted.

5 changes: 0 additions & 5 deletions src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
//!
//! - `HttpService`: This is blanketly implemented for all types that
//! implement `Service<http::Request<B1>, Response = http::Response<B2>>`.
//! - `MakeConnection`: A `Service` that returns a "connection", a type that
//! implements `AsyncRead` and `AsyncWrite`.
//!
//! # HttpService
//!
Expand All @@ -26,16 +24,13 @@
pub use tower_service::Service;

mod http;
mod make;
#[cfg(all(any(feature = "http1", feature = "http2"), feature = "client"))]
mod oneshot;
mod util;

#[cfg(all(any(feature = "http1", feature = "http2"), feature = "server"))]
pub(super) use self::http::HttpService;
#[cfg(all(any(feature = "http1", feature = "http2"), feature = "client"))]
pub(super) use self::make::MakeConnection;
#[cfg(all(any(feature = "http1", feature = "http2"), feature = "client"))]
pub(super) use self::oneshot::{oneshot, Oneshot};

pub use self::util::service_fn;

0 comments on commit 889fa2d

Please sign in to comment.