RewriteResponse

data class RewriteResponse(val dynamicLinks: Boolean, val function: String, val functionRegion: String, val glob: String, val path: String, val regex: String, val run: CloudRunRewriteResponse)

A Rewrite 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.

Constructors

Link copied to clipboard
fun RewriteResponse(dynamicLinks: Boolean, function: String, functionRegion: String, glob: String, path: String, regex: String, run: CloudRunRewriteResponse)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The request will be forwarded to Firebase Dynamic Links.

Link copied to clipboard

The function to proxy requests to. Must match the exported function name exactly.

Link copied to clipboard

Optional. Specify a Cloud region for rewritten Functions invocations. If not provided, defaults to us-central1.

Link copied to clipboard

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

Link copied to clipboard

The URL path to rewrite the request to.

Link copied to clipboard

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

Link copied to clipboard

The request will be forwarded to Cloud Run.