httpsRedirectWhen

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.

Parameters

redirectMatchers

the list of conditions that, when any are met, the filter should redirect to https.


fun httpsRedirectWhen(redirectMatcherFunction: (ServerWebExchange) -> Boolean)

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.

Parameters

redirectMatcherFunction

the condition in which the filter should redirect to https.