pub struct Response {
pub status_code: StatusCode,
pub raw_response: String,
pub headers: HashMap<String, String>,
pub body: String,
pub request_used: Request,
}
Expand description
Describes the response of an HTTP request, and contains the response data
Fields§
§status_code: StatusCode
The status code of the response
raw_response: String
The raw response, as a string
headers: HashMap<String, String>
The headers of the response
body: String
The body of the response
request_used: Request
An exact copy of the request that generated this response
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