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 Engine v1 API allows for the specification of how headers are added to requests or responses.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides documentation and code samples for the \u003ccode\u003eHttpHeaderOption\u003c/code\u003e class, which is part of the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace and found within the \u003ccode\u003eGoogle.Cloud.Compute.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 3.6.0, with previous versions ranging from 3.5.0 to 1.0.0 also accessible, the current page is specifically displaying version 2.8.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces, offering methods and properties for header name, header value, and replacement behavior.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple constructors available for the \u003ccode\u003eHttpHeaderOption\u003c/code\u003e, and key properties such as \u003ccode\u003eHasHeaderName\u003c/code\u003e, \u003ccode\u003eHasHeaderValue\u003c/code\u003e, and \u003ccode\u003eHasReplace\u003c/code\u003e indicate whether specific fields are set.\u003c/p\u003e\n"]]],[],null,[]]