pub fn served_headers(path: &str) -> Vec<(&'static str, &'static str)>Expand description
The headers of the file at path, served: its type, by its extension, and those that sandbox it.
let headers = compmd_host::served_headers("strict.html");
assert!(headers.contains(&("content-type", "text/html; charset=utf-8")));
assert!(headers.contains(&("content-security-policy", "sandbox allow-scripts")));