class Google::Apis::ComputeV1::HttpHeaderAction

The request and response header transformations that take effect before the request is passed along to the selected backendService.

Attributes

request_headers_to_add[RW]

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::ComputeV1::HttpHeaderOption>]

request_headers_to_remove[RW]

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>]

response_headers_to_add[RW]

Headers to add the response prior to sending the response back to the client. Corresponds to the JSON property `responseHeadersToAdd` @return [Array<Google::Apis::ComputeV1::HttpHeaderOption>]

response_headers_to_remove[RW]

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

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 10177
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 10182
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