[][src]Function armor::hide_powered_by

pub fn hide_powered_by(headers: &mut HeaderMap)

Removes the X-Powered-By header to make it slightly harder for attackers to see what potentially-vulnerable technology powers your site.

read more

Examples

let mut headers = http::HeaderMap::new();
headers.insert("X-Powered-By", "Tide/Rust".parse().unwrap());
armor::hide_powered_by(&mut headers);
assert_eq!(headers.get("X-Powered-By"), None);