Trait atomic_http::StreamHttp

source ·
pub trait StreamHttp {
    // Required method
    fn parse_request<'life0, 'async_trait>(
        self,
        options: &'life0 Options,
    ) -> Pin<Box<dyn Future<Output = Result<(Request<Body>, Response<Writer>), Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn parse_request<'life0, 'async_trait>( self, options: &'life0 Options, ) -> Pin<Box<dyn Future<Output = Result<(Request<Body>, Response<Writer>), Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

source§

impl StreamHttp for TcpStream

source§

fn parse_request<'life0, 'async_trait>( self, options: &'life0 Options, ) -> Pin<Box<dyn Future<Output = Result<(Request<Body>, Response<Writer>), Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§