Type Alias twitch_api::client::Response

source ·
pub type Response = Response<Body>;
Available on crate feature client only.
Expand description

The response type we’re expecting with body

Aliased Type§

struct Response { /* private fields */ }

Trait Implementations§

source§

impl<Buffer> ResponseExt for Response<Buffer>where Buffer: Into<Body>,

§

type Error = Error

Error returned
source§

fn into_response_vec<'a>( self ) -> BoxedFuture<'a, Result<Response<Vec<u8>>, Self::Error>>

Return the body as a vector of bytes
source§

fn into_response_bytes<'a>( self ) -> BoxedFuture<'a, Result<Response<Bytes>, Self::Error>>

Return the body as a Bytes