Rewrite class

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

Rewrite({Input<bool>? dynamicLinks, Input<String>? function, Input<String>? functionRegion, Input<String>? glob, Input<String>? path, Input<String>? regex, Input<CloudRunRewrite>? run})
Creates a new Rewrite. dynamicLinks The request will be forwarded to Firebase Dynamic Links. function The function to proxy requests to. Must match the exported function name exactly. functionRegion Optional. Specify a Cloud region for rewritten Functions invocations. If not provided, defaults to us-central1. glob The user-supplied glob to match against the request URL path. path The URL path to rewrite the request to. regex The user-supplied RE2 regular expression to match against the request URL path. run The request will be forwarded to Cloud Run.
const
Rewrite.fromMap(Map<String, dynamic> map)
factory

Properties

The request will be forwarded to Firebase Dynamic Links.
final
function → Input<String>?
The function to proxy requests to. Must match the exported function name exactly.
final
functionRegion → Input<String>?
Optional. Specify a Cloud region for rewritten Functions invocations. If not provided, defaults to us-central1.
final
glob → Input<String>?
The user-supplied glob to match against the request URL path.
final
hashCode → int
The hash code for this object.
no setterinherited
path → Input<String>?
The URL path to rewrite the request to.
final
regex → Input<String>?
The user-supplied RE2 regular expression to match against the request URL path.
final
run → Input<CloudRunRewrite>?
The request will be forwarded to Cloud Run.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited