Class: Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination::HttpHeaderMatch
- Inherits:
-
Object
- Object
- Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination::HttpHeaderMatch
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/networksecurity/v1beta1/authorization_policy.rb
Overview
Specification of HTTP header match attributes.
Instance Attribute Summary collapse
-
#header_name ⇒ ::String
Required.
-
#regex_match ⇒ ::String
Required.
Instance Attribute Details
#header_name ⇒ ::String
Returns Required. The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method".
141 142 143 144 |
# File 'proto_docs/google/cloud/networksecurity/v1beta1/authorization_policy.rb', line 141 class HttpHeaderMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#regex_match ⇒ ::String
Returns Required. The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to Host and a regular expression that satisfies the RFC2616 Host header's port specifier.
141 142 143 144 |
# File 'proto_docs/google/cloud/networksecurity/v1beta1/authorization_policy.rb', line 141 class HttpHeaderMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |