HttpsRedirect

class HttpsRedirect

Redirect non-secure requests to HTTPS

Types

Configuration

class Configuration

Redirect feature configuration

Feature

companion object Feature : 
    ApplicationFeature<ApplicationCallPipeline, Configuration, HttpsRedirect>

Feature installation object

Constructors

<init>

HttpsRedirect(config: Configuration)

Redirect non-secure requests to HTTPS

Properties

permanent

val permanent: Boolean

If it does permanent redirect

redirectPort

val redirectPort: Int

HTTPS port to redirect to

Companion Object Properties

key

Unique key that identifies a feature

Companion Object Functions

install

fun install(
    pipeline: ApplicationCallPipeline,
    configure: Configuration.() -> Unit
): HttpsRedirect

Feature installation script