Struct fibers_http_server::Res
source · pub struct Res<T>(/* private fields */);
Expand description
HTTP response.
T
is the type of the response body.
Implementations§
source§impl<T> Res<T>
impl<T> Res<T>
sourcepub fn version(&self) -> HttpVersion
pub fn version(&self) -> HttpVersion
Returns the HTTP version of the response.
sourcepub fn status_code(&self) -> u16
pub fn status_code(&self) -> u16
Returns the status code of the response.
sourcepub fn header_mut(&mut self) -> HeaderMut<'_>
pub fn header_mut(&mut self) -> HeaderMut<'_>
Returns the mutable header of the response.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Res<T>where
T: Freeze,
impl<T> RefUnwindSafe for Res<T>where
T: RefUnwindSafe,
impl<T> Send for Res<T>where
T: Send,
impl<T> Sync for Res<T>where
T: Sync,
impl<T> Unpin for Res<T>where
T: Unpin,
impl<T> UnwindSafe for Res<T>where
T: UnwindSafe,
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