http_types::security

Function hsts

Source
pub fn hsts(headers: impl AsMut<Headers>)
Expand description

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.

read more