HeaderMatch(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Specifies how to select a route rule based on HTTP request headers.
This message has oneof
_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes
Name | Description |
exact_match |
str
The value of the header should match exactly the content of exact_match. This field is a member of `oneof`_ ``MatchType``. |
regex_match |
str
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 This field is a member of `oneof`_ ``MatchType``. |
prefix_match |
str
The value of the header must start with the contents of prefix_match. This field is a member of `oneof`_ ``MatchType``. |
present_match |
bool
A header with header_name must exist. The match takes place whether or not the header has a value. This field is a member of `oneof`_ ``MatchType``. |
suffix_match |
str
The value of the header must end with the contents of suffix_match. This field is a member of `oneof`_ ``MatchType``. |
range_match |
google.cloud.network_services_v1.types.HttpRoute.HeaderMatch.IntegerRange
If specified, the rule will match if the request header value is within the range. This field is a member of `oneof`_ ``MatchType``. |
header |
str
The name of the HTTP header to match against. |
invert_match |
bool
If specified, the match result will be inverted before checking. Default value is set to false. |
Inheritance
builtins.object > proto.message.Message > HeaderMatchClasses
IntegerRange
IntegerRange(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Represents an integer value range.