Trait hyper_static_server::ResponseExt [−][src]
Required methods
pub fn set_status(&mut self, _status: StatusCode) -> &mut Selfⓘ
[src]
pub 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ⓘ
pub 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ⓘ
pub fn set_body(&mut self, _body: impl Into<B>) -> &mut Selfⓘ
[src]
Provided methods
pub fn set_status_200(&mut self) -> &mut Selfⓘ
[src]
pub 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: Body,
[src]
B: Body,
pub fn set_status(&mut self, _status: StatusCode) -> &mut Response<B>
[src]
pub fn set_header(
&mut self,
_name: impl IntoHeaderName,
_value: impl Into<HeaderValue>
) -> &mut Response<B>
[src]
&mut self,
_name: impl IntoHeaderName,
_value: impl Into<HeaderValue>
) -> &mut Response<B>
pub fn add_header(
&mut self,
_name: impl IntoHeaderName,
_value: impl Into<HeaderValue>
) -> &mut Response<B>
[src]
&mut self,
_name: impl IntoHeaderName,
_value: impl Into<HeaderValue>
) -> &mut Response<B>