class Google::Apis::ComputeBeta::HttpHeaderOption
Specification determining how headers are added to requests or responses.
Attributes
The name of the header. Corresponds to the JSON property `headerName` @return [String]
The value of the header to add. Corresponds to the JSON property `headerValue` @return [String]
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]
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
# File lib/google/apis/compute_beta/classes.rb, line 10946 def initialize(**args) update!(**args) end
Public Instance Methods
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