Struct HeaderField
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
Properties
Name
Header name
public ReadOnlyMemory<char> Name { get; }
Property Value
Size
The RFC length for the dynamic table size
public int Size { get; }
Property Value
Value
Value of Header
public ReadOnlyMemory<char> Value { get; }
Property Value
Methods
ToString()
public override string ToString()