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<String, String>> headers, required Input<String> regex})
Creates a new HeaderResponse. glob The user-supplied glob to match against the request URL path. headers The additional headers to add to the response. regex The 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