HostingVersionConfig

data class HostingVersionConfig(val headers: List<HostingVersionConfigHeader>? = null, val redirects: List<HostingVersionConfigRedirect>? = null, val rewrites: List<HostingVersionConfigRewrite>? = null)

Constructors

Link copied to clipboard
constructor(headers: List<HostingVersionConfigHeader>? = null, redirects: List<HostingVersionConfigRedirect>? = null, rewrites: List<HostingVersionConfigRewrite>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

An array of objects, where each object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers. Structure is documented below.

Link copied to clipboard

An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path. Structure is documented below.

Link copied to clipboard

An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL. Structure is documented below.