Configuration

class Configuration

Redirect feature configuration

Constructors

Link copied to clipboard
fun Configuration()

Functions

Link copied to clipboard
fun exclude(predicate: (call: ApplicationCall) -> Boolean)

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

Link copied to clipboard
fun excludePrefix(pathPrefix: String)

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

Link copied to clipboard
fun excludeSuffix(pathSuffix: String)

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

Properties

Link copied to clipboard
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.

Link copied to clipboard
var permanentRedirect: Boolean = true

Use permanent redirect or temporary

Link copied to clipboard
var sslPort: Int

HTTPS port (443 by default) to redirect to