feat(headers): add strict-transport-security header

Strict-Transport-Security allows servers to inform user-agents that
they'd like them to always contact the secure host (https) instead of
the insecure one (http).

Closes #589
This commit is contained in:
Sam Gibson
2015-06-29 10:59:10 +10:00
committed by Sean McArthur
parent 9a85ea553f
commit 7c2e5124e6
2 changed files with 197 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ pub use self::range::{Range, ByteRangeSpec};
pub use self::referer::Referer;
pub use self::server::Server;
pub use self::set_cookie::SetCookie;
pub use self::strict_transport_security::StrictTransportSecurity;
pub use self::transfer_encoding::TransferEncoding;
pub use self::upgrade::{Upgrade, Protocol, ProtocolName};
pub use self::user_agent::UserAgent;
@@ -356,6 +357,7 @@ mod range;
mod referer;
mod server;
mod set_cookie;
mod strict_transport_security;
mod transfer_encoding;
mod upgrade;
mod user_agent;