Configuration

class Configuration

Redirect feature configuration

Constructors

<init>

Configuration()

Redirect feature configuration

Properties

excludePredicates

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.

permanentRedirect

var permanentRedirect: Boolean

Use permanent redirect or temporary

sslPort

var sslPort: Int

HTTPS port (443 by default) to redirect to

Functions

exclude

fun exclude(
    predicate: (call: ApplicationCall) -> Boolean
): Unit

Exclude calls matching the predicate from being redirected to https by this feature.

excludePrefix

fun excludePrefix(pathPrefix: String): Unit

Exclude calls with paths matching the pathPrefix from being redirected to https by this feature.