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