pub struct HttpResponse {
pub status: u16,
pub content_length: Option<u64>,
pub body: ByteStream,
}Expand description
HTTP response with status, content length, and body stream
Fields§
§status: u16HTTP status code
content_length: Option<u64>Content-Length header value, if present
body: ByteStreamResponse body as a stream of bytes
Auto Trait Implementations§
impl Freeze for HttpResponse
impl !RefUnwindSafe for HttpResponse
impl Send for HttpResponse
impl !Sync for HttpResponse
impl Unpin for HttpResponse
impl !UnwindSafe for HttpResponse
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