RedirectConfigResponse

data class RedirectConfigResponse(val host: String? = null, val path: String? = null, val port: String? = null, val protocol: String? = null, val query: String? = null, val statusCode: String? = null)

Definition of RedirectConfig

Constructors

Link copied to clipboard
constructor(host: String? = null, path: String? = null, port: String? = null, protocol: String? = null, query: String? = null, statusCode: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val host: String? = null

The hostname. This component is not percent-encoded. The hostname can contain #{host}.

Link copied to clipboard
val path: String? = null

The absolute path, starting with the leading '/'. This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}.

Link copied to clipboard
val port: String? = null

The port. You can specify a value from 1 to 65535 or #{port}.

Link copied to clipboard
val protocol: String? = null

The protocol. You can specify HTTP, HTTPS, or #{protocol}. You can redirect HTTP to HTTP, HTTP to HTTPS, and HTTPS to HTTPS. You cannot redirect HTTPS to HTTP.

Link copied to clipboard
val query: String? = null

The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading '?', as it is automatically added. You can specify any of the reserved keywords.

Link copied to clipboard
val statusCode: String? = null

The HTTP redirect code. The redirect is either permanent (HTTP 301) or temporary (HTTP 302).