Function html_response

Source
pub fn html_response<T, S>(status_code: T, body: S) -> Response
Expand description

Converts text to bytes (UTF8) and sends that as the body with that status_code and HTML Content-Type header (text/html)