Skip to main content

Response

Type Alias Response 

Source
pub type Response<B = Body> = Response<B>;
Expand description

Response with Body as default body

Aliased Type§

pub struct Response<B = Body> { /* private fields */ }

Trait Implementations§

Source§

impl<B> SseExt<B> for Response<B>
where B: Body<Data = Bytes> + Unpin, B::Error: Into<BoxError>,

Available on crate feature client only.
Source§

fn into_sse(self) -> Result<SseReader<B>, BoxError>

Consume the response and return an SseReader. Read more