class Google::Apis::ComputeBeta::HttpHeaderOption

Specification determining how headers are added to requests or responses.

Attributes

header_name[RW]

The name of the header. Corresponds to the JSON property `headerName` @return [String]

header_value[RW]

The value of the header to add. Corresponds to the JSON property `headerValue` @return [String]

replace[RW]

If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false. Corresponds to the JSON property `replace` @return [Boolean]

replace?[RW]

If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false. Corresponds to the JSON property `replace` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_beta/classes.rb, line 10946
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_beta/classes.rb, line 10951
def update!(**args)
  @header_name = args[:header_name] if args.key?(:header_name)
  @header_value = args[:header_value] if args.key?(:header_value)
  @replace = args[:replace] if args.key?(:replace)
end