pub struct Response<'headers> {
pub minor_version: u8,
pub status: u16,
pub reason: &'headers str,
pub headers: &'headers [Header<'headers>],
}Expand description
An HTTP status line and response headers.
'headers is the lifetime of the array of Header instances as well as the byte buffer into
which they (and the reason field) point.
Fields§
§minor_version: u8The HTTP minor version number.
For example, for HTTP/1.0, this is zero; for HTTP/1.1, this is 1.
status: u16The status code.
reason: &'headers strThe reason phrase.
headers: &'headers [Header<'headers>]The response headers.
Trait Implementations§
impl<'headers> StructuralPartialEq for Response<'headers>
Auto Trait Implementations§
impl<'headers> Freeze for Response<'headers>
impl<'headers> RefUnwindSafe for Response<'headers>
impl<'headers> Send for Response<'headers>
impl<'headers> Sync for Response<'headers>
impl<'headers> Unpin for Response<'headers>
impl<'headers> UnwindSafe for Response<'headers>
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