HttpRouteHeaderMatch class
Specifies how to select a route rule based on HTTP request headers.
Constructors
-
HttpRouteHeaderMatch({Input<
String> ? exactMatch, Input<String> ? header, Input<bool> ? invertMatch, Input<String> ? prefixMatch, Input<bool> ? presentMatch, Input<HttpRouteHeaderMatchIntegerRange> ? rangeMatch, Input<String> ? regexMatch, Input<String> ? suffixMatch}) -
Creates a new HttpRouteHeaderMatch.
exactMatchThe value of the header should match exactly the content of exact_match.headerThe name of the HTTP header to match against.invertMatchIf specified, the match result will be inverted before checking. Default value is set to false.prefixMatchThe value of the header must start with the contents of prefix_match.presentMatchA header with header_name must exist. The match takes place whether or not the header has a value.rangeMatchIf specified, the rule will match if the request header value is within the range.regexMatchThe value of the header must match the regular expression specified in regex_match. For regular expression grammar, please see: https://github.com/google/re2/wiki/SyntaxsuffixMatchThe value of the header must end with the contents of suffix_match.const -
HttpRouteHeaderMatch.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
exactMatch
→ Input<
String> ? -
The value of the header should match exactly the content of exact_match.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
header
→ Input<
String> ? -
The name of the HTTP header to match against.
final
-
invertMatch
→ Input<
bool> ? -
If specified, the match result will be inverted before checking. Default value is set to false.
final
-
prefixMatch
→ Input<
String> ? -
The value of the header must start with the contents of prefix_match.
final
-
presentMatch
→ Input<
bool> ? -
A header with header_name must exist. The match takes place whether or not the header has a value.
final
-
rangeMatch
→ Input<
HttpRouteHeaderMatchIntegerRange> ? -
If specified, the rule will match if the request header value is within the range.
final
-
regexMatch
→ Input<
String> ? -
The value of the header must match the regular expression specified in regex_match. For regular expression grammar, please see: https://github.com/google/re2/wiki/Syntax
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
suffixMatch
→ Input<
String> ? -
The value of the header must end with the contents of suffix_match.
final
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