HostingVersionConfigRedirect

data class HostingVersionConfigRedirect(val glob: String? = null, val location: String, val regex: String? = null, val statusCode: Int)

Constructors

Link copied to clipboard
constructor(glob: String? = null, location: String, regex: String? = null, statusCode: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val glob: String? = null

The user-supplied glob to match against the request URL path.

Link copied to clipboard

The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a : prefix to identify the segment and an optional * to capture the rest of the URL. For example:

Link copied to clipboard
val regex: String? = null

The user-supplied RE2 regular expression to match against the request URL path.

Link copied to clipboard

The status HTTP code to return in the response. It must be a valid 3xx status code.