Trait GenericRequestBuilder

Source
pub trait GenericRequestBuilder<R>: Send + Sync {
    // Required methods
    fn header(&mut self, name: &str, value: &str);
    fn body(&mut self, body: Bytes);
    fn form(&mut self, form: &Value);
    fn send<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn header(&mut self, name: &str, value: &str)

Source

fn body(&mut self, body: Bytes)

Source

fn form(&mut self, form: &Value)

Source

fn send<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§