pub struct Response<'s> {
pub status: Status,
pub version: Version,
pub headers: HashMap<String, String>,
/* private fields */
}
Expand description
A HTTP response for the server to reply to the client
Fields§
§status: Status
The HTTP status code of the response
version: Version
The HTTP version of the response
headers: HashMap<String, String>
A type alias of a Hashmap containing the headers of the response
Implementations§
Auto Trait Implementations§
impl<'s> Freeze for Response<'s>
impl<'s> !RefUnwindSafe for Response<'s>
impl<'s> Send for Response<'s>
impl<'s> Sync for Response<'s>
impl<'s> Unpin for Response<'s>
impl<'s> !UnwindSafe for Response<'s>
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