class Configuration
Redirect feature configuration
Configuration()
Redirect feature configuration |
val excludePredicates: MutableList<(ApplicationCall) -> Boolean>
The list of call predicates for redirect exclusion. Any call matching any of the predicates will not be redirected by this feature. |
|
var permanentRedirect: Boolean
Use permanent redirect or temporary |
|
var sslPort: Int
HTTPS port (443 by default) to redirect to |
fun exclude(predicate: (call: ApplicationCall) -> Boolean): Unit
Exclude calls matching the predicate from being redirected to https by this feature. |
|
fun excludePrefix(pathPrefix: String): Unit
Exclude calls with paths matching the pathPrefix from being redirected to https by this feature. |
|
fun excludeSuffix(pathSuffix: String): Unit
Exclude calls with paths matching the pathSuffix from being redirected to https by this feature. |