Class: Google::Apis::NetworksecurityV1beta1::HttpHeaderMatch
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1beta1::HttpHeaderMatch
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networksecurity_v1beta1/classes.rb,
lib/google/apis/networksecurity_v1beta1/representations.rb,
lib/google/apis/networksecurity_v1beta1/representations.rb
Overview
Specification of HTTP header match attributes.
Instance Attribute Summary collapse
-
#header_name ⇒ String
Required.
-
#regex_match ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpHeaderMatch
constructor
A new instance of HttpHeaderMatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HttpHeaderMatch
Returns a new instance of HttpHeaderMatch.
1741 1742 1743 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1741 def initialize(**args) update!(**args) end |
Instance Attribute Details
#header_name ⇒ String
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".
Corresponds to the JSON property headerName
1730 1731 1732 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1730 def header_name @header_name end |
#regex_match ⇒ String
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.
Corresponds to the JSON property regexMatch
1739 1740 1741 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1739 def regex_match @regex_match end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1746 1747 1748 1749 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1746 def update!(**args) @header_name = args[:header_name] if args.key?(:header_name) @regex_match = args[:regex_match] if args.key?(:regex_match) end |