Trait hyper_simple_server::ResponseExt [−][src]
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]
&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
[src]
&mut self,
_name: impl IntoHeaderName,
_value: impl Into<HeaderValue>
) -> &mut Self
fn set_body(&mut self, _body: impl Into<B>) -> &mut Self
[src]
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]
&mut self,
_content_type: impl Into<HeaderValue>
) -> &mut Self
Implementors
impl<B> ResponseExt<B> for Response<B> where
B: BodyTrait,
[src]
B: BodyTrait,
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]
&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
[src]
&mut self,
_name: impl IntoHeaderName,
_value: impl Into<HeaderValue>
) -> &mut Self