Struct reqores::ServerResponse
source · [−]pub struct ServerResponse {
pub status: Option<HttpStatusCode>,
pub headers: Vec<(String, String)>,
pub body: Option<Vec<u8>>,
}Fields
status: Option<HttpStatusCode>headers: Vec<(String, String)>body: Option<Vec<u8>>Implementations
sourceimpl ServerResponse
impl ServerResponse
pub fn then(self, other: ServerResponse) -> ServerResponse
Auto Trait Implementations
impl RefUnwindSafe for ServerResponse
impl Send for ServerResponse
impl Sync for ServerResponse
impl Unpin for ServerResponse
impl UnwindSafe for ServerResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more