Trait hyper_simple_server::ResponseExtBuild [−][src]
Required methods
fn new_with_status_and_body(
_status: StatusCode,
_content_type: Option<impl Into<HeaderValue>>,
_body: impl Into<B>
) -> Self
[src]
_status: StatusCode,
_content_type: Option<impl Into<HeaderValue>>,
_body: impl Into<B>
) -> Self
Provided methods
fn new_empty() -> Self where
B: Default,
[src]
B: Default,
fn new_200_with_body(
_content_type: Option<impl Into<HeaderValue>>,
_body: impl Into<B>
) -> Self
[src]
_content_type: Option<impl Into<HeaderValue>>,
_body: impl Into<B>
) -> Self
fn new_200_with_text(_body: impl Into<B>) -> Self
[src]
fn new_200_with_html(_body: impl Into<B>) -> Self
[src]
fn new_200() -> Self where
B: From<&'static str>,
[src]
B: From<&'static str>,
fn new_404() -> Self where
B: From<&'static str>,
[src]
B: From<&'static str>,
fn new_method_not_allowed() -> Self where
B: From<&'static str>,
[src]
B: From<&'static str>,
fn ok<E>(self) -> Result<Self, E>
[src]
fn ok_0(self) -> Result<Self, ServerError>
[src]
fn ready<E>(self) -> Ready<Result<Self, E>>
[src]
fn ready_0(self) -> Ready<Result<Self, ServerError>>
[src]
Implementors
impl ResponseExtBuild<Body> for Response<Body>
[src]
fn new_with_status_and_body(
_status: StatusCode,
_content_type: Option<impl Into<HeaderValue>>,
_body: impl Into<Body>
) -> Self
[src]
_status: StatusCode,
_content_type: Option<impl Into<HeaderValue>>,
_body: impl Into<Body>
) -> Self