pub trait ResponseExt {
    type Error;

    fn into_response_vec<'a>(
        self
    ) -> BoxedFuture<'a, Result<Response<Vec<u8>>, Self::Error>>; fn into_response_bytes<'a>(
        self
    ) -> BoxedFuture<'a, Result<Response<Bytes>, Self::Error>>; }
Available on crate feature client only.
Expand description

Extension trait for Response

Required Associated Types

Error returned

Required Methods

Return the body as a vector of bytes

Return the body as a Bytes

Implementations on Foreign Types

Implementors