HttpsRedirectConfig

class HttpsRedirectConfig

A configuration for the HttpsRedirect plugin.

Constructors

Link copied to clipboard
fun HttpsRedirectConfig()

Functions

Link copied to clipboard
fun exclude(predicate: (<ERROR CLASS>) -> Boolean)

Allows you to disable redirection for calls matching the specified predicate.

Link copied to clipboard
fun excludePrefix(pathPrefix: String)

Allows you to disable redirection for calls with a path matching pathPrefix.

Link copied to clipboard
fun excludeSuffix(pathSuffix: String)

Allows you to disable redirection for calls with a path matching pathSuffix.

Properties

Link copied to clipboard
val excludePredicates: MutableList<(<ERROR CLASS>) -> Boolean>

Allows you to disable redirection for calls matching specified conditions.

Link copied to clipboard
var permanentRedirect: Boolean = true

Specifies whether to use permanent or temporary redirect.

Link copied to clipboard
var sslPort: Int

Specifies an HTTPS port (443 by default) used to redirect HTTP requests.