HttpsRedirect

class HttpsRedirect(config: HttpsRedirect.Configuration)

Redirect non-secure requests to HTTPS

Constructors

Link copied to clipboard
fun HttpsRedirect(config: HttpsRedirect.Configuration)

Types

Link copied to clipboard
class Configuration

Redirect feature configuration

Link copied to clipboard

Feature installation object

Properties

Link copied to clipboard
val excludePredicates: List<(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
val permanent: Boolean

If it does permanent redirect

Link copied to clipboard
val redirectPort: Int

HTTPS port to redirect to