Trait futures_http::reader::HttpReader

source ·
pub trait HttpReader:
    AsyncRead
    + Unpin
    + Send
    + 'static {
    // Provided methods
    fn read_request(self) -> impl Future<Output = Result<Request<BodyReader>>>
       where Self: Sized { ... }
    fn read_response(self) -> impl Future<Output = Result<Response<BodyReader>>>
       where Self: Sized { ... }
}

Provided Methods§

source

fn read_request(self) -> impl Future<Output = Result<Request<BodyReader>>>
where Self: Sized,

source

fn read_response(self) -> impl Future<Output = Result<Response<BodyReader>>>
where Self: Sized,

Implementors§

source§

impl<T: AsyncRead + Send + Unpin + 'static> HttpReader for T