pub struct Response {
pub status: u16,
pub body: Vec<u8>,
pub final_url: String,
}Expand description
One answer: its status, its body, and the URL that answered after every redirect.
Fields§
§status: u16The HTTP status code.
body: Vec<u8>The body, whole.
final_url: StringThe URL that answered, after the redirects the client followed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Response
impl Freeze for Response
impl Move 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