Struct webframework::prelude::Response
source · pub struct Response { /* private fields */ }
Implementations
sourceimpl Response
impl Response
pub fn from_string<S>(cont: S) -> Responsewhere
S: ToString,
pub fn with_status(self, status: StatusCode) -> Response
pub fn with_header(self, key: HeaderName, value: HeaderValue) -> Response
pub fn as_response(self) -> Result<Response<Body>, Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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