Redirect

class Redirect

Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The host name to use in the redirect request.

Link copied to clipboard

The HTTP redirect code to use on the response. Not required if one of the siblings is present.

Link copied to clipboard

Protocol to use when redirecting requests. The default is the protocol that is used in the original request.

Link copied to clipboard

The object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix docs/ (objects in the docs/ folder) to documents/, you can set a condition block with KeyPrefixEquals set to docs/ and in the Redirect set ReplaceKeyPrefixWith to /documents. Not required if one of the siblings is present. Can be present only if ReplaceKeyWith is not provided.

Link copied to clipboard

The specific object key to use in the redirect request. For example, redirect request to error.html. Not required if one of the siblings is present. Can be present only if ReplaceKeyPrefixWith is not provided.

Functions

Link copied to clipboard
inline fun copy(block: Redirect.Builder.() -> Unit = {}): Redirect
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String