Class HttpHeaderOption (1.0.0)

public sealed class HttpHeaderOption : IMessage<HttpHeaderOption>, IEquatable<HttpHeaderOption>, IDeepCloneable<HttpHeaderOption>, IBufferMessage, IMessage

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
Boolean

HasHeaderValue

public bool HasHeaderValue { get; }

Gets whether the "header_value" field is set

Property Value
TypeDescription
Boolean

HasReplace

public bool HasReplace { get; }

Gets whether the "replace" field is set

Property Value
TypeDescription
Boolean

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
Boolean