Configuration

Redirect feature configuration

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

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 host: String?

HTTPS host to redirect to. Defaults to null, which keeps the host of the incoming request.

Link copied to clipboard

Use permanent redirect or temporary

Link copied to clipboard

HTTPS port (443 by default) to redirect to

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 whose path (not including the query string) starts with pathPrefix from being redirected to https by this feature.

Link copied to clipboard
fun excludeSuffix(pathSuffix: String)

Exclude calls whose path (not including the query string) ends with pathSuffix from being redirected to https by this feature.