Class HttpRouteHeaderMatch
Specifies how to select a route rule based on HTTP request headers.
Implements
Inherited Members
Namespace: Google.Apis.NetworkServices.v1beta1.Data
Assembly: Google.Apis.NetworkServices.v1beta1.dll
Syntax
public class HttpRouteHeaderMatch : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
ExactMatch
The value of the header should match exactly the content of exact_match.
Declaration
[JsonProperty("exactMatch")]
public virtual string ExactMatch { get; set; }
Property Value
Type | Description |
---|---|
string |
Header
The name of the HTTP header to match against.
Declaration
[JsonProperty("header")]
public virtual string Header { get; set; }
Property Value
Type | Description |
---|---|
string |
InvertMatch
If specified, the match result will be inverted before checking. Default value is set to false.
Declaration
[JsonProperty("invertMatch")]
public virtual bool? InvertMatch { get; set; }
Property Value
Type | Description |
---|---|
bool? |
PrefixMatch
The value of the header must start with the contents of prefix_match.
Declaration
[JsonProperty("prefixMatch")]
public virtual string PrefixMatch { get; set; }
Property Value
Type | Description |
---|---|
string |
PresentMatch
A header with header_name must exist. The match takes place whether or not the header has a value.
Declaration
[JsonProperty("presentMatch")]
public virtual bool? PresentMatch { get; set; }
Property Value
Type | Description |
---|---|
bool? |
RangeMatch
If specified, the rule will match if the request header value is within the range.
Declaration
[JsonProperty("rangeMatch")]
public virtual HttpRouteHeaderMatchIntegerRange RangeMatch { get; set; }
Property Value
Type | Description |
---|---|
HttpRouteHeaderMatchIntegerRange |
RegexMatch
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
Declaration
[JsonProperty("regexMatch")]
public virtual string RegexMatch { get; set; }
Property Value
Type | Description |
---|---|
string |
SuffixMatch
The value of the header must end with the contents of suffix_match.
Declaration
[JsonProperty("suffixMatch")]
public virtual string SuffixMatch { get; set; }
Property Value
Type | Description |
---|---|
string |