Trait hyper_simple_server::ResponseExt[][src]

pub trait ResponseExt<B> where
    B: BodyTrait
{ fn set_status(&mut self, _status: StatusCode) -> &mut Self;
fn set_header(
        &mut self,
        _name: impl IntoHeaderName,
        _value: impl Into<HeaderValue>
    ) -> &mut Self;
fn add_header(
        &mut self,
        _name: impl IntoHeaderName,
        _value: impl Into<HeaderValue>
    ) -> &mut Self;
fn set_body(&mut self, _body: impl Into<B>) -> &mut Self; fn set_status_200(&mut self) -> &mut Self { ... }
fn set_content_type(
        &mut self,
        _content_type: impl Into<HeaderValue>
    ) -> &mut Self { ... } }

Required methods

fn set_status(&mut self, _status: StatusCode) -> &mut Self[src]

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

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

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

Loading content...

Provided methods

fn set_status_200(&mut self) -> &mut Self[src]

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

Loading content...

Implementors

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

Loading content...