Rewrite class

A [Rewrite](https://firebase.google.com/docs/hosting/full-config#rewrites) 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({bool? dynamicLinks, String? function, String? functionRegion, String? glob, String? path, String? regex, CloudRunRewrite? run})
Rewrite.fromJson(Map json_)

Properties

The request will be forwarded to Firebase Dynamic Links.
getter/setter pair
function String?
The function to proxy requests to.
getter/setter pair
functionRegion String?
Specify a Cloud region for rewritten Functions invocations.
getter/setter pair
glob String?
The user-supplied glob to match against the request URL path.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
path String?
The URL path to rewrite the request to.
getter/setter pair
regex String?
The user-supplied RE2 regular expression to match against the request URL path.
getter/setter pair
run CloudRunRewrite?
The request will be forwarded to Cloud Run.
getter/setter pair
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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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