Sisk

Struct

HttpHeader

Namespace
Sisk.Cadente
Assembly
Sisk.Cadente.dll

Represents an HTTP header, consisting of a name and a value.

C#
public readonly struct HttpHeader : IEquatable<HttpHeader>

Implements #

IEquatable<HttpHeader>

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
HttpHeader(in ReadOnlyMemory<byte>, in ReadOnlyMemory<byte>)Initializes a new instance of the HttpHeader struct with the specified name and value as byte arrays.
HttpHeader(string, string)Initializes a new instance of the HttpHeader struct with the specified name and value as strings.

Properties #

NameDescription
IsEmptyGets a value indicating whether this HttpHeader has a empty name.
NameGets the name of the header as a string.
ValueGets the value of the header as a string.

Methods #

NameDescription
Equals(object?)
Equals(HttpHeader)
GetHashCode()
ToString()Gets the string representation of this HttpHeader.

Type to search the documentation and the API reference.