Class: Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch
- Inherits:
-
Object
- Object
- Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/networkservices/v1/http_route.rb
Overview
Specifies how to select a route rule based on HTTP request headers.
Defined Under Namespace
Classes: IntegerRange
Instance Attribute Summary collapse
-
#exact_match ⇒ ::String
The value of the header should match exactly the content of exact_match.
-
#header ⇒ ::String
The name of the HTTP header to match against.
-
#invert_match ⇒ ::Boolean
If specified, the match result will be inverted before checking.
-
#prefix_match ⇒ ::String
The value of the header must start with the contents of prefix_match.
-
#present_match ⇒ ::Boolean
A header with header_name must exist.
-
#range_match ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch::IntegerRange
If specified, the rule will match if the request header value is within the range.
-
#regex_match ⇒ ::String
The value of the header must match the regular expression specified in regex_match.
-
#suffix_match ⇒ ::String
The value of the header must end with the contents of suffix_match.
Instance Attribute Details
#exact_match ⇒ ::String
Returns The value of the header should match exactly the content of exact_match.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129 class HeaderMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents an integer value range. # @!attribute [rw] start # @return [::Integer] # Start of the range (inclusive) # @!attribute [rw] end # @return [::Integer] # End of the range (exclusive) class IntegerRange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#header ⇒ ::String
Returns The name of the HTTP header to match against.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129 class HeaderMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents an integer value range. # @!attribute [rw] start # @return [::Integer] # Start of the range (inclusive) # @!attribute [rw] end # @return [::Integer] # End of the range (exclusive) class IntegerRange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#invert_match ⇒ ::Boolean
Returns If specified, the match result will be inverted before checking. Default value is set to false.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129 class HeaderMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents an integer value range. # @!attribute [rw] start # @return [::Integer] # Start of the range (inclusive) # @!attribute [rw] end # @return [::Integer] # End of the range (exclusive) class IntegerRange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#prefix_match ⇒ ::String
Returns The value of the header must start with the contents of prefix_match.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129 class HeaderMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents an integer value range. # @!attribute [rw] start # @return [::Integer] # Start of the range (inclusive) # @!attribute [rw] end # @return [::Integer] # End of the range (exclusive) class IntegerRange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#present_match ⇒ ::Boolean
Returns A header with header_name must exist. The match takes place whether or not the header has a value.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129 class HeaderMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents an integer value range. # @!attribute [rw] start # @return [::Integer] # Start of the range (inclusive) # @!attribute [rw] end # @return [::Integer] # End of the range (exclusive) class IntegerRange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#range_match ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch::IntegerRange
Returns If specified, the rule will match if the request header value is within the range.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129 class HeaderMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents an integer value range. # @!attribute [rw] start # @return [::Integer] # Start of the range (inclusive) # @!attribute [rw] end # @return [::Integer] # End of the range (exclusive) class IntegerRange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#regex_match ⇒ ::String
Returns 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.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129 class HeaderMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents an integer value range. # @!attribute [rw] start # @return [::Integer] # Start of the range (inclusive) # @!attribute [rw] end # @return [::Integer] # End of the range (exclusive) class IntegerRange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#suffix_match ⇒ ::String
Returns The value of the header must end with the contents of suffix_match.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129 class HeaderMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents an integer value range. # @!attribute [rw] start # @return [::Integer] # Start of the range (inclusive) # @!attribute [rw] end # @return [::Integer] # End of the range (exclusive) class IntegerRange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |