Skip to main content

ResponseExt

Trait ResponseExt 

Source
pub trait ResponseExt<T>: Sized {
    // Required method
    fn body_reader(self) -> BodyReader<T>;
}
Expand description

Extension trait for the http::Response.

Required Methods§

Source

fn body_reader(self) -> BodyReader<T>

Consumes the response and returns a body reader wrapper.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> ResponseExt<T> for Response<T>

Implementors§