[−][src]Function http_types::security::hsts
pub fn hsts(headers: impl AsMut<Headers>)
Sets the Strict-Transport-Security header to keep your users on HTTPS.
Note that the header won’t tell users on HTTP to switch to HTTPS, it will tell HTTPS users to stick around. Defaults to 60 days.