ServerHttpsRedirectDsl

A Kotlin DSL to configure ServerHttpSecurity HTTPS redirection rules using idiomatic Kotlin code.

Author

Eleftheria Stein

Since

5.4

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var portMapper: PortMapper?

the PortMapper that specifies a custom HTTPS port to redirect to.

Functions

Link copied to clipboard
fun httpsRedirectWhen(redirectMatcherFunction: (ServerWebExchange) -> Boolean)
fun httpsRedirectWhen(vararg redirectMatchers: ServerWebExchangeMatcher)

Configures when this filter should redirect to https. If invoked multiple times, whether a matcher or a function is provided, only the last redirect rule will apply and all previous rules will be overridden.