class Google::Apis::ComputeBeta::HttpHeaderAction
The request and response header transformations that take effect before the request is passed along to the selected backendService.
Attributes
Headers to add to a matching request prior to forwarding the request to the backendService. Corresponds to the JSON property `requestHeadersToAdd` @return [Array<Google::Apis::ComputeBeta::HttpHeaderOption>]
A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService. Corresponds to the JSON property `requestHeadersToRemove` @return [Array<String>]
Headers to add the response prior to sending the response back to the client. Corresponds to the JSON property `responseHeadersToAdd` @return [Array<Google::Apis::ComputeBeta::HttpHeaderOption>]
A list of header names for headers that need to be removed from the response prior to sending the response back to the client. Corresponds to the JSON property `responseHeadersToRemove` @return [Array<String>]
Public Class Methods
# File lib/google/apis/compute_beta/classes.rb, line 10822 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/compute_beta/classes.rb, line 10827 def update!(**args) @request_headers_to_add = args[:request_headers_to_add] if args.key?(:request_headers_to_add) @request_headers_to_remove = args[:request_headers_to_remove] if args.key?(:request_headers_to_remove) @response_headers_to_add = args[:response_headers_to_add] if args.key?(:response_headers_to_add) @response_headers_to_remove = args[:response_headers_to_remove] if args.key?(:response_headers_to_remove) end