Class: Google::Apis::NetworkservicesV1beta1::HttpRouteHeaderModifier
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::HttpRouteHeaderModifier
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1beta1/classes.rb,
lib/google/apis/networkservices_v1beta1/representations.rb,
lib/google/apis/networkservices_v1beta1/representations.rb
Overview
The specification for modifying HTTP header in HTTP request and HTTP response.
Instance Attribute Summary collapse
-
#add ⇒ Hash<String,String>
Add the headers with given map where key is the name of the header, value is the value of the header.
-
#remove ⇒ Array<String>
Remove headers (matching by header names) specified in the list.
-
#set ⇒ Hash<String,String>
Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpRouteHeaderModifier
constructor
A new instance of HttpRouteHeaderModifier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HttpRouteHeaderModifier
Returns a new instance of HttpRouteHeaderModifier.
1548 1549 1550 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1548 def initialize(**args) update!(**args) end |
Instance Attribute Details
#add ⇒ Hash<String,String>
Add the headers with given map where key is the name of the header, value is
the value of the header.
Corresponds to the JSON property add
1535 1536 1537 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1535 def add @add end |
#remove ⇒ Array<String>
Remove headers (matching by header names) specified in the list.
Corresponds to the JSON property remove
1540 1541 1542 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1540 def remove @remove end |
#set ⇒ Hash<String,String>
Completely overwrite/replace the headers with given map where key is the name
of the header, value is the value of the header.
Corresponds to the JSON property set
1546 1547 1548 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1546 def set @set end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1553 1554 1555 1556 1557 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1553 def update!(**args) @add = args[:add] if args.key?(:add) @remove = args[:remove] if args.key?(:remove) @set = args[:set] if args.key?(:set) end |