Table of Contents

Struct HeaderField

Namespace
Fluxzy.Clients.H2.Encoder
Assembly
Fluxzy.Core.dll

This struct represents a name pair value of a HTTP header. RequestQuery Path and Method are always represented as HTTP/2.0 pseudo headerfields

public readonly struct HeaderField
Inherited Members
Extension Methods

Constructors

HeaderField(ReadOnlyMemory<char>)

Create HeaderField from a ReadOnlyMemory name. Value is empty.

public HeaderField(ReadOnlyMemory<char> memoryName)

Parameters

memoryName ReadOnlyMemory<char>

HeaderField(ReadOnlyMemory<char>, ReadOnlyMemory<char>)

Create HeaderField from a ReadOnlyMemory name and value.

public HeaderField(ReadOnlyMemory<char> memoryName, ReadOnlyMemory<char> memoryValue)

Parameters

memoryName ReadOnlyMemory<char>
memoryValue ReadOnlyMemory<char>

HeaderField(ReadOnlySpan<char>, ReadOnlySpan<char>, ArrayPoolMemoryProvider<char>)

Name pair value build from span

public HeaderField(ReadOnlySpan<char> memoryName, ReadOnlySpan<char> memoryValue, ArrayPoolMemoryProvider<char> memoryProvider)

Parameters

memoryName ReadOnlySpan<char>
memoryValue ReadOnlySpan<char>
memoryProvider ArrayPoolMemoryProvider<char>

HeaderField(string)

Create a new HeaderField with a string name. Value is empty.

public HeaderField(string name)

Parameters

name string

HeaderField(string, string)

Create a new HeaderField from a string name and a string value

public HeaderField(string name, string value)

Parameters

name string
value string

Properties

Name

Header name

public ReadOnlyMemory<char> Name { get; }

Property Value

ReadOnlyMemory<char>

Size

The RFC length for the dynamic table size

public int Size { get; }

Property Value

int

Value

Value of Header

public ReadOnlyMemory<char> Value { get; }

Property Value

ReadOnlyMemory<char>

Methods

ToString()

public override string ToString()

Returns

string