[−][src]Function cgi::html_response
pub fn html_response<T, S>(status_code: T, body: S) -> Response where
StatusCode: TryFrom<T>,
<StatusCode as TryFrom<T>>::Error: Into<Error>,
S: Into<String>,
Converts text
to bytes (UTF8) and sends that as the body with that status_code
and HTML
Content-Type
header (text/html
)