Struct
HttpHeader
Represents an HTTP header, consisting of a name and a value.
public readonly struct HttpHeader : IEquatable<HttpHeader>Implements #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| 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 #
| Name | Description |
|---|---|
| IsEmpty | Gets a value indicating whether this HttpHeader has a empty name. |
| Name | Gets the name of the header as a string. |
| Value | Gets the value of the header as a string. |
Methods #
| Name | Description |
|---|---|
| Equals(object?) | |
| Equals(HttpHeader) | |
| GetHashCode() | |
| ToString() | Gets the string representation of this HttpHeader. |