Trait hyper_static_server::ResponseExt[][src]

pub trait ResponseExt<B> where
    B: Body
{ pub fn set_status(&mut self, _status: StatusCode) -> &mut Self

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
;
pub fn set_header(
        &mut self,
        _name: impl IntoHeaderName,
        _value: impl Into<HeaderValue>
    ) -> &mut Self

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
;
pub fn add_header(
        &mut self,
        _name: impl IntoHeaderName,
        _value: impl Into<HeaderValue>
    ) -> &mut Self

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
;
pub fn set_body(&mut self, _body: impl Into<B>) -> &mut Self

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
; pub fn set_status_200(&mut self) -> &mut Self

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
{ ... }
pub fn set_content_type(
        &mut self,
        _content_type: impl Into<HeaderValue>
    ) -> &mut Self

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
{ ... } }

Required methods

pub fn set_status(&mut self, _status: StatusCode) -> &mut Self

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

pub fn set_header(
    &mut self,
    _name: impl IntoHeaderName,
    _value: impl Into<HeaderValue>
) -> &mut Self

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

pub fn add_header(
    &mut self,
    _name: impl IntoHeaderName,
    _value: impl Into<HeaderValue>
) -> &mut Self

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

pub fn set_body(&mut self, _body: impl Into<B>) -> &mut Self

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

Loading content...

Provided methods

pub fn set_status_200(&mut self) -> &mut Self

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

pub fn set_content_type(
    &mut self,
    _content_type: impl Into<HeaderValue>
) -> &mut Self

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

Loading content...

Implementors

impl<B> ResponseExt<B> for Response<B> where
    B: Body
[src]

Loading content...