[][src]Function armor::dns_prefetch_control

pub fn dns_prefetch_control(headers: &mut HeaderMap)

Disable browsers’ DNS prefetching by setting the X-DNS-Prefetch-Control header.

read more

Examples

let mut headers = http::HeaderMap::new();
armor::dns_prefetch_control(&mut headers);
assert_eq!(headers["X-DNS-Prefetch-Control"], "on");