pub struct HttpResponse {
pub status: HttpStatus,
pub headers: HashMap<String, String>,
pub body: Bytes,
}Expand description
The status, selected headers, and decoded body returned by a buffered HTTP request.
Fields§
§status: HttpStatusThe HTTP status code.
headers: HashMap<String, String>The response headers as a map of key-value pairs.
body: BytesThe response body after HTTP content decoding.
Trait 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