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:
committed by
Sean McArthur
parent
9a85ea553f
commit
7c2e5124e6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user