Sisk

Constructor

HttpHeader constructor

Namespace
Sisk.Cadente
Assembly
Sisk.Cadente.dll

HttpHeader(in ReadOnlyMemory<byte>, in ReadOnlyMemory<byte>) #

Initializes a new instance of the HttpHeader struct with the specified name and value as byte arrays.

C#
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.

C#
public HttpHeader(string name, string value)

Parameters #

name string

The name of the header.

value string

The value of the header.

Type to search the documentation and the API reference.