Skip to main content

map_html

Function map_html 

Source
pub fn map_html<F>(name: impl Into<String>, transform: F) -> MwEntry
where F: Fn(&str) -> Option<String> + Send + Sync + 'static,
Expand description

After the handler: map buffered text/html bodies with transform.

Non-HTML / streamed responses are unchanged.