[−][src]Function armor::armor
pub fn armor(headers: &mut HeaderMap)
Apply all protections.
Examples
let mut headers = http::HeaderMap::new(); armor::armor(&mut headers); assert_eq!(headers["X-Content-Type-Options"], "nosniff"); assert_eq!(headers["X-XSS-Protection"], "1; mode=block");