Table of Contents

Class Http11Parser

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

Converts a flat HTTP/1.1 request to a list of (name, value) headers compatible with HTTP/2

public static class Http11Parser
Inheritance
Http11Parser
Inherited Members

Methods

Read(ReadOnlyMemory<char>, bool, bool, bool)

public static IEnumerable<HeaderField> Read(ReadOnlyMemory<char> input, bool isHttps = true, bool keepNonForwardableHeader = false, bool splitCookies = true)

Parameters

input ReadOnlyMemory<char>
isHttps bool
keepNonForwardableHeader bool
splitCookies bool

Returns

IEnumerable<HeaderField>

Write(ICollection<HeaderField>, Span<char>)

public static Span<char> Write(ICollection<HeaderField> entries, Span<char> buffer)

Parameters

entries ICollection<HeaderField>
buffer Span<char>

Returns

Span<char>

Write(ICollection<HeaderFieldInfo>, Span<char>)

TODO bechn introduce base interface vs unboxing cost

public static Span<char> Write(ICollection<HeaderFieldInfo> entries, Span<char> buffer)

Parameters

entries ICollection<HeaderFieldInfo>
buffer Span<char>

Returns

Span<char>