ServingConfigResponse

data class ServingConfigResponse(val appAssociation: String, val cleanUrls: Boolean, val headers: List<HeaderResponse>, val i18n: I18nConfigResponse, val redirects: List<RedirectResponse>, val rewrites: List<RewriteResponse>, val trailingSlashBehavior: String)

The configuration for how incoming requests to a site should be routed and processed before serving content. The URL request paths are matched against the specified URL patterns in the configuration, then Hosting applies the applicable configuration according to a specific priority order.

Constructors

Link copied to clipboard
fun ServingConfigResponse(appAssociation: String, cleanUrls: Boolean, headers: List<HeaderResponse>, i18n: I18nConfigResponse, redirects: List<RedirectResponse>, rewrites: List<RewriteResponse>, trailingSlashBehavior: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

How to handle well known App Association files.

Link copied to clipboard

Defines whether to drop the file extension from uploaded files.

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.

Link copied to clipboard

Optional. Defines i18n rewrite behavior.

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.

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.

Link copied to clipboard

Defines how to handle a trailing slash in the URL path.