Compute Engine v1 API - Class HttpHeaderOption (2.11.0)

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.

Inheritance

object > HttpHeaderOption

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

HttpHeaderOption()

public HttpHeaderOption()

HttpHeaderOption(HttpHeaderOption)

public HttpHeaderOption(HttpHeaderOption other)
Parameter
NameDescription
otherHttpHeaderOption

Properties

HasHeaderName

public bool HasHeaderName { get; }

Gets whether the "header_name" field is set

Property Value
TypeDescription
bool

HasHeaderValue

public bool HasHeaderValue { get; }

Gets whether the "header_value" field is set

Property Value
TypeDescription
bool

HasReplace

public bool HasReplace { get; }

Gets whether the "replace" field is set

Property Value
TypeDescription
bool

HeaderName

public string HeaderName { get; set; }

The name of the header.

Property Value
TypeDescription
string

HeaderValue

public string HeaderValue { get; set; }

The value of the header to add.

Property Value
TypeDescription
string

Replace

public bool Replace { get; set; }

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.

Property Value
TypeDescription
bool