Class Http11Parser
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
boolkeepNonForwardableHeader
boolsplitCookies
bool
Returns
Write(ICollection<HeaderField>, Span<char>)
public static Span<char> Write(ICollection<HeaderField> entries, Span<char> buffer)
Parameters
entries
ICollection<HeaderField>buffer
Span<char>
Returns
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>