Trait ReqExt

Source
pub trait ReqExt<'a> {
    // Required methods
    fn body_raw_bytes(&'a mut self) -> BoxFuture<'a, Result<Vec<u8>>>;
    fn body_raw_bytes_with_max_size(
        &'a mut self,
        size: u64,
    ) -> BoxFuture<'a, Result<Vec<u8>>>;
    fn basic_auth(&'a self) -> Option<(String, String)>;
    fn bearer_auth(&'a self) -> Option<String>;
    fn body_text(&'a mut self) -> BoxFuture<'a, Result<String>>;
}

Required Methods§

Source

fn body_raw_bytes(&'a mut self) -> BoxFuture<'a, Result<Vec<u8>>>

Source

fn body_raw_bytes_with_max_size( &'a mut self, size: u64, ) -> BoxFuture<'a, Result<Vec<u8>>>

Source

fn basic_auth(&'a self) -> Option<(String, String)>

Source

fn bearer_auth(&'a self) -> Option<String>

Source

fn body_text(&'a mut self) -> BoxFuture<'a, Result<String>>

Implementors§

Source§

impl<'a> ReqExt<'a> for Request<Body>