Redirect class

A [Redirect]( specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.


Redirect({String? glob, String? location, String? regex, int? statusCode})
Redirect.fromJson(Map json_)


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
location String?
The value to put in the HTTP location header of the response.
getter/setter pair
regex String?
The user-supplied RE2 regular expression to match against the request URL path.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
The status HTTP code to return in the response.
getter/setter pair


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


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