pub struct HttpResponseStream { /* private fields */ }Expand description
An HTTP response whose body is consumed incrementally.
One absolute deadline covers response headers and the whole body, including time between chunk reads. Dropping an unfinished response releases its body and, under simulation, aborts its owned connection task. No total body limit applies.
Implementations§
Source§impl HttpResponseStream
impl HttpResponseStream
Sourcepub fn status(&self) -> StatusCode
pub fn status(&self) -> StatusCode
Returns the HTTP response status.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HttpResponseStream
impl !UnwindSafe for HttpResponseStream
impl Freeze for HttpResponseStream
impl Send for HttpResponseStream
impl Sync for HttpResponseStream
impl Unpin for HttpResponseStream
impl UnsafeUnpin for HttpResponseStream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more