pub struct HttpResponse {
pub status: u16,
pub status_text: String,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
pub final_url: String,
}Expand description
4xx/5xx are not errors at this layer — only transport failures become HttpError.
Fields§
§status: u16§status_text: String§headers: Vec<(String, String)>Names lowercased by ReqwestHttpClient.
body: Vec<u8>§final_url: StringTrait Implementations§
Source§impl Clone for HttpResponse
impl Clone for HttpResponse
Auto Trait Implementations§
impl Freeze for HttpResponse
impl RefUnwindSafe for HttpResponse
impl Send for HttpResponse
impl Sync for HttpResponse
impl Unpin for HttpResponse
impl UnsafeUnpin for HttpResponse
impl UnwindSafe for HttpResponse
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