public sealed class HttpHeaderOption : IMessage<HttpHeaderOption>, IEquatable<HttpHeaderOption>, IDeepCloneable<HttpHeaderOption>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class HttpHeaderOption.
Specification determining how headers are added to requests or responses.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eHttpHeaderOption\u003c/code\u003e class in the Google.Cloud.Compute.V1 API allows developers to define how headers are added to HTTP requests or responses, with the latest version being 3.6.0 and many prior versions available, going all the way back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eHttpHeaderOption\u003c/code\u003e objects can be constructed using the default constructor or a copy constructor, taking another \u003ccode\u003eHttpHeaderOption\u003c/code\u003e as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties to manage header names, header values, and whether to replace existing headers, all accessible through public get and set methods.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eHeaderName\u003c/code\u003e and \u003ccode\u003eHeaderValue\u003c/code\u003e properties store the name and value of the http header respectively, while the \u003ccode\u003eReplace\u003c/code\u003e property determines whether the provided \u003ccode\u003eHeaderValue\u003c/code\u003e should replace any existing values.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eHttpHeaderOption\u003c/code\u003e class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<HttpHeaderOption>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<HttpHeaderOption>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]