Compute Engine v1 API - Class HttpHeaderOption (3.1.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
Name Description
other HttpHeaderOption

Properties

HasHeaderName

public bool HasHeaderName { get; }

Gets whether the "header_name" field is set

Property Value
Type Description
bool

HasHeaderValue

public bool HasHeaderValue { get; }

Gets whether the "header_value" field is set

Property Value
Type Description
bool

HasReplace

public bool HasReplace { get; }

Gets whether the "replace" field is set

Property Value
Type Description
bool

HeaderName

public string HeaderName { get; set; }

The name of the header.

Property Value
Type Description
string

HeaderValue

public string HeaderValue { get; set; }

The value of the header to add.

Property Value
Type Description
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
Type Description
bool