Trait ResponseExt

Source
pub trait ResponseExt {
    // Provided methods
    async fn body_vec(&mut self, limit: Option<usize>) -> Result<Vec<u8>> { ... }
    async fn body_string(&mut self, limit: Option<usize>) -> Result<String> { ... }
}

Provided Methods§

Source

async fn body_vec(&mut self, limit: Option<usize>) -> Result<Vec<u8>>

Source

async fn body_string(&mut self, limit: Option<usize>) -> Result<String>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ResponseExt for Response<ResponseBody>

Implementors§