Function cgi::html_response
source · pub fn html_response<T, S>(status_code: T, body: S) -> Responsewhere
StatusCode: HttpTryFrom<T>,
S: Into<String>,
Expand description
Converts text
to bytes (UTF8) and sends that as the body with that status_code
and HTML
Content-Type
header.