pub struct HttpResponse {
pub status: u16,
pub headers: HeaderMap,
pub body: Vec<u8>,
}Expand description
One answer, of any status.
Debug shows the status, header names and body length only.
Fields§
§status: u16The status code.
headers: HeaderMapThe response headers.
body: Vec<u8>The whole body.
Implementations§
Trait Implementations§
Source§impl Clone for HttpResponse
impl Clone for HttpResponse
Auto Trait Implementations§
impl Forget for HttpResponse
impl Freeze for HttpResponse
impl Move 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