pub struct HttpStreamingResponse {
pub status: StatusCode,
pub headers: HeaderMap,
pub body: Pin<Box<dyn Stream<Item = Result<Bytes, Error>> + Send + Sync>>,
}Expand description
Raw HTTP response with a streaming body from a backend.
Fields§
§status: StatusCodeHTTP status.
headers: HeaderMapResponse headers.
body: Pin<Box<dyn Stream<Item = Result<Bytes, Error>> + Send + Sync>>Response body stream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpStreamingResponse
impl !RefUnwindSafe for HttpStreamingResponse
impl Send for HttpStreamingResponse
impl Sync for HttpStreamingResponse
impl Unpin for HttpStreamingResponse
impl UnsafeUnpin for HttpStreamingResponse
impl !UnwindSafe for HttpStreamingResponse
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