Class RequestHeader
public class RequestHeader : Header
- Inheritance
-
RequestHeader
- Inherited Members
Constructors
RequestHeader(IEnumerable<HeaderField>)
Building from explicit headers
public RequestHeader(IEnumerable<HeaderField> headers)
Parameters
headers
IEnumerable<HeaderField>
RequestHeader(ReadOnlyMemory<char>, bool)
Building from flat H11
public RequestHeader(ReadOnlyMemory<char> headerContent, bool isSecure)
Parameters
headerContent
ReadOnlyMemory<char>isSecure
bool
Properties
Authority
Authority, can contain port number prefixed with ':'
public ReadOnlyMemory<char> Authority { get; }
Property Value
IsWebSocketRequest
true if it's a websocket request
public bool IsWebSocketRequest { get; }
Property Value
Method
Request method
public ReadOnlyMemory<char> Method { get; }
Property Value
Path
Request PATH
public ReadOnlyMemory<char> Path { get; }
Property Value
Scheme
Request scheme
public ReadOnlyMemory<char> Scheme { get; }
Property Value
Methods
GetFullUrl()
Full URL building with Authority, path and scheme
public string GetFullUrl()
Returns
GetHeaderLineLength()
protected override int GetHeaderLineLength()
Returns
WriteHeaderLine(Span<byte>)
protected override int WriteHeaderLine(Span<byte> buffer)