HeaderResponse class
A Header specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
Constructors
-
HeaderResponse({required Input<
String> glob, required Input<Map< headers, required Input<String, String> >String> regex}) -
Creates a new HeaderResponse.
globThe user-supplied glob to match against the request URL path.headersThe additional headers to add to the response.regexThe user-supplied RE2 regular expression to match against the request URL path.const -
HeaderResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
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
-
headers
→ Input<
Map< String, String> > -
The additional headers to add to the response.
final
-
regex
→ Input<
String> -
The user-supplied RE2 regular expression to match against the request URL path.
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