pub struct Response {
pub status: u16,
pub status_text: String,
pub url: String,
pub headers: Headers,
pub body: Body,
pub redirected: bool,
pub unfollowed_redirect: bool,
pub server_addr: Option<RemoteAddr>,
pub type_: ResponseType,
}Expand description
The engine’s response: metadata plus a single-use body.
Fields§
§status: u16§status_text: String§url: StringFinal URL after any followed redirects.
headers: Headers§body: Body§redirected: boolWhether at least one redirect hop was followed.
unfollowed_redirect: boolWhether a 3xx was returned unfollowed because redirect: manual.
server_addr: Option<RemoteAddr>§type_: ResponseTypeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Response
impl !RefUnwindSafe for Response
impl !Sync for Response
impl !UnwindSafe for Response
impl Send for Response
impl Unpin for Response
impl UnsafeUnpin 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