pub struct Response {
pub status: StatusCode,
pub headers: Vec<ResponseHeader>,
pub body: Vec<u8>,
}Expand description
HTTP response container returned by send.
Fields§
§status: StatusCodeStatus code returned by the server.
headers: Vec<ResponseHeader>Response headers in received order (including duplicates).
body: Vec<u8>Raw response body bytes.
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 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