Skip to main content

html_response

Function html_response 

Source
pub fn html_response(
    html: &'static str,
    etag: &str,
    if_none_match: Option<&[u8]>,
) -> Response
Expand description

Serve HTML with ETag support. Returns 304 if the client’s If-None-Match matches etag.