HttpStrictTransportSecurityDsl

A Kotlin DSL to configure the HttpSecurity HTTP Strict Transport Security header using idiomatic Kotlin code.

Author

Eleftheria Stein

Since

5.3

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

if true, subdomains should be considered HSTS Hosts too.

Link copied to clipboard

the value (in seconds) for the max-age directive of the Strict-Transport-Security header.

Link copied to clipboard

if true, preload will be included in HSTS Header.

Link copied to clipboard
var requestMatcher: RequestMatcher?

the RequestMatcher used to determine if the "Strict-Transport-Security" header should be added. If true the header is added, else the header is not added.

Functions

Link copied to clipboard
fun disable()

Disable the HTTP Strict Transport Security header.