Table of Contents

Struct HttpHeader

Namespace
Sisk.Cadente
Assembly
Sisk.Cadente.dll

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

public readonly struct HttpHeader : IEquatable<HttpHeader>
Implements
Inherited Members

Constructors

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

IsEmpty

Gets a value indicating whether this HttpHeader has any empty value or name.

Name

Gets the name of the header as a string.

Value

Gets the value of the header as a string.

Methods

Equals(HttpHeader)
Equals(object?)
GetHashCode()
ToString()

Gets the string representation of this HttpHeader.