StrictTransportSecurityHeader class final

Represents the HTTP Strict-Transport-Security (HSTS) header for managing HSTS settings.

Constructors

StrictTransportSecurityHeader({required int maxAge, bool includeSubDomains = false, bool preload = false})
Creates a StrictTransportSecurityHeader with the specified maxAge, includeSubDomains, and preload.
StrictTransportSecurityHeader.parse(String value)
Parses the Strict-Transport-Security header value into a StrictTransportSecurityHeader instance.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
includeSubDomains → bool
The includeSubDomains directive applies this rule to all of the site's subdomains as well.
final
maxAge → int
The max-age directive specifies the time, in seconds, that the browser should remember that a site is only to be accessed using HTTPS.
final
preload → bool
The preload directive indicates that the site is requesting inclusion in the HSTS preload list maintained by browsers.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override