diff --git a/src/client.rs b/src/client.rs deleted file mode 100644 index 64746b39..00000000 --- a/src/client.rs +++ /dev/null @@ -1,15 +0,0 @@ -use std::fmt::Debug; -use std::future::Future; -use std::pin::Pin; - -use crate::{Request, Response, Result}; - -type BoxFuture<'a, T> = Pin + 'a + Send>>; - -/// An HTTP client. -#[cfg(feature = "unstable")] -#[cfg_attr(feature = "docs", doc(cfg(unstable)))] -pub trait Client: Debug + Unpin + Send + Sync + Clone + 'static { - /// Send an HTTP request from the client. - fn send_req(&self, req: Request) -> BoxFuture<'static, Result>; -} diff --git a/src/lib.rs b/src/lib.rs index d0554c59..2a9c3f87 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -135,13 +135,6 @@ mod version; pub mod trace; cfg_unstable! { pub mod upgrade; - - mod client; - mod server; - - pub use client::Client; - pub use server::Server; - } pub use body::Body; diff --git a/src/server.rs b/src/server.rs deleted file mode 100644 index 15b0a537..00000000 --- a/src/server.rs +++ /dev/null @@ -1,15 +0,0 @@ -use std::fmt::Debug; -use std::future::Future; -use std::pin::Pin; - -use crate::{Request, Response, Result}; - -type BoxFuture<'a, T> = Pin + 'a + Send>>; - -/// An HTTP server. -#[cfg(feature = "unstable")] -#[cfg_attr(feature = "docs", doc(cfg(unstable)))] -pub trait Server: Debug + Unpin + Send + Sync + Clone + 'static { - /// Receive an HTTP request on the server. - fn recv_req(&self, req: Request) -> BoxFuture<'static, Result>; -}