Constructor HttpHeader
HttpHeader(in ReadOnlyMemory<byte>, in ReadOnlyMemory<byte>)
Initializes a new instance of the HttpHeader struct with the specified name and value as byte arrays.
public HttpHeader(in ReadOnlyMemory<byte> nameBytes, in ReadOnlyMemory<byte> valueBytes)
Parameters
nameBytes
ReadOnlyMemory<byte>The byte array representing the name of the header.
valueBytes
ReadOnlyMemory<byte>The byte array representing the value of the header.
HttpHeader(string, string)
Initializes a new instance of the HttpHeader struct with the specified name and value as strings.
public HttpHeader(string name, string value)