Network Services V1 API - Class Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch (v0.1.0)

Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#exact_match

def exact_match() -> ::String
Returns
  • (::String) — The value of the header should match exactly the content of exact_match.

#exact_match=

def exact_match=(value) -> ::String
Parameter
  • value (::String) — The value of the header should match exactly the content of exact_match.
Returns
  • (::String) — The value of the header should match exactly the content of exact_match.

#header

def header() -> ::String
Returns
  • (::String) — The name of the HTTP header to match against.

#header=

def header=(value) -> ::String
Parameter
  • value (::String) — The name of the HTTP header to match against.
Returns
  • (::String) — The name of the HTTP header to match against.

#invert_match

def invert_match() -> ::Boolean
Returns
  • (::Boolean) — If specified, the match result will be inverted before checking. Default value is set to false.

#invert_match=

def invert_match=(value) -> ::Boolean
Parameter
  • value (::Boolean) — If specified, the match result will be inverted before checking. Default value is set to false.
Returns
  • (::Boolean) — If specified, the match result will be inverted before checking. Default value is set to false.

#prefix_match

def prefix_match() -> ::String
Returns
  • (::String) — The value of the header must start with the contents of prefix_match.

#prefix_match=

def prefix_match=(value) -> ::String
Parameter
  • value (::String) — The value of the header must start with the contents of prefix_match.
Returns
  • (::String) — The value of the header must start with the contents of prefix_match.

#present_match

def present_match() -> ::Boolean
Returns
  • (::Boolean) — A header with header_name must exist. The match takes place whether or not the header has a value.

#present_match=

def present_match=(value) -> ::Boolean
Parameter
  • value (::Boolean) — A header with header_name must exist. The match takes place whether or not the header has a value.
Returns
  • (::Boolean) — A header with header_name must exist. The match takes place whether or not the header has a value.

#range_match

def range_match() -> ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch::IntegerRange
Returns

#range_match=

def range_match=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch::IntegerRange
Parameter
Returns

#regex_match

def regex_match() -> ::String
Returns
  • (::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

#regex_match=

def regex_match=(value) -> ::String
Parameter
  • value (::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
Returns
  • (::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

#suffix_match

def suffix_match() -> ::String
Returns
  • (::String) — The value of the header must end with the contents of suffix_match.

#suffix_match=

def suffix_match=(value) -> ::String
Parameter
  • value (::String) — The value of the header must end with the contents of suffix_match.
Returns
  • (::String) — The value of the header must end with the contents of suffix_match.