pub trait ResponseExt {
// Required methods
fn collect_bytes(self) -> impl Future<Output = Result<Bytes, Error>> + Send;
fn into_read(self) -> impl AsyncRead + Send + Unpin + 'static;
}Expand description
Helper methods for http::Response.
Required Methods§
Sourcefn collect_bytes(self) -> impl Future<Output = Result<Bytes, Error>> + Send
fn collect_bytes(self) -> impl Future<Output = Result<Bytes, Error>> + Send
Collect the response body into a bytes::Bytes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".