pub trait Handle: Send + Sync + Clone {
    // Required method
    fn request<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        req: &'life1 Bytes,
        headers: &'life2 [Element]
    ) -> Pin<Box<dyn Future<Output = Result<(Bytes, Vec<Element>)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

source

fn request<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, req: &'life1 Bytes, headers: &'life2 [Element] ) -> Pin<Box<dyn Future<Output = Result<(Bytes, Vec<Element>)>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Provides handling of HTTP requests.

Implementors§