pub struct HttpResponse {
pub status: u16,
pub headers: Vec<(String, String)>,
pub body: Box<dyn Read + Send>,
}Expand description
A response from HttpClient::send.
Fields§
§status: u16Status code.
headers: Vec<(String, String)>Response headers; names are lowercase.
body: Box<dyn Read + Send>The body, read as it arrives.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HttpResponse
impl !Sync for HttpResponse
impl !UnwindSafe for HttpResponse
impl Freeze for HttpResponse
impl Send for HttpResponse
impl Unpin for HttpResponse
impl UnsafeUnpin 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