Network Services v1 API - Class HttpRoute.Types.HeaderMatch (1.0.0)

public sealed class HttpRoute.Types.HeaderMatch : IMessage<HttpRoute.Types.HeaderMatch>, IEquatable<HttpRoute.Types.HeaderMatch>, IDeepCloneable<HttpRoute.Types.HeaderMatch>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Services v1 API class HttpRoute.Types.HeaderMatch.

Specifies how to select a route rule based on HTTP request headers.

Inheritance

object > HttpRoute.Types.HeaderMatch

Namespace

Google.Cloud.NetworkServices.V1

Assembly

Google.Cloud.NetworkServices.V1.dll

Constructors

HeaderMatch()

public HeaderMatch()

HeaderMatch(HeaderMatch)

public HeaderMatch(HttpRoute.Types.HeaderMatch other)
Parameter
Name Description
other HttpRouteTypesHeaderMatch

Properties

ExactMatch

public string ExactMatch { get; set; }

The value of the header should match exactly the content of exact_match.

Property Value
Type Description
string

HasExactMatch

public bool HasExactMatch { get; }

Gets whether the "exact_match" field is set

Property Value
Type Description
bool

HasPrefixMatch

public bool HasPrefixMatch { get; }

Gets whether the "prefix_match" field is set

Property Value
Type Description
bool

HasPresentMatch

public bool HasPresentMatch { get; }

Gets whether the "present_match" field is set

Property Value
Type Description
bool

HasRegexMatch

public bool HasRegexMatch { get; }

Gets whether the "regex_match" field is set

Property Value
Type Description
bool

HasSuffixMatch

public bool HasSuffixMatch { get; }

Gets whether the "suffix_match" field is set

Property Value
Type Description
bool

Header

public string Header { get; set; }

The name of the HTTP header to match against.

Property Value
Type Description
string

InvertMatch

public bool InvertMatch { get; set; }

If specified, the match result will be inverted before checking. Default value is set to false.

Property Value
Type Description
bool

MatchTypeCase

public HttpRoute.Types.HeaderMatch.MatchTypeOneofCase MatchTypeCase { get; }
Property Value
Type Description
HttpRouteTypesHeaderMatchMatchTypeOneofCase

PrefixMatch

public string PrefixMatch { get; set; }

The value of the header must start with the contents of prefix_match.

Property Value
Type Description
string

PresentMatch

public bool PresentMatch { get; set; }

A header with header_name must exist. The match takes place whether or not the header has a value.

Property Value
Type Description
bool

RangeMatch

public HttpRoute.Types.HeaderMatch.Types.IntegerRange RangeMatch { get; set; }

If specified, the rule will match if the request header value is within the range.

Property Value
Type Description
HttpRouteTypesHeaderMatchTypesIntegerRange

RegexMatch

public string RegexMatch { get; set; }

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

Property Value
Type Description
string

SuffixMatch

public string SuffixMatch { get; set; }

The value of the header must end with the contents of suffix_match.

Property Value
Type Description
string