pub struct Response {
pub version: Version,
pub status: StatusCode,
pub reason: Bytes,
pub headers: Headers,
/* private fields */
}Expand description
A parsed response.
Fields§
§version: VersionThe protocol version.
status: StatusCodeThe status code.
reason: BytesThe reason phrase, which may be empty (RFC 4475 §3.1.1.13) and may contain spaces.
headers: HeadersThe headers, in wire order.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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