Table of Contents

Class RequestHeader

Namespace
Fluxzy.Core
Assembly
Fluxzy.Core.dll
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

ReadOnlyMemory<char>

IsWebSocketRequest

true if it's a websocket request

public bool IsWebSocketRequest { get; }

Property Value

bool

Method

Request method

public ReadOnlyMemory<char> Method { get; }

Property Value

ReadOnlyMemory<char>

Path

Request PATH

public ReadOnlyMemory<char> Path { get; }

Property Value

ReadOnlyMemory<char>

Scheme

Request scheme

public ReadOnlyMemory<char> Scheme { get; }

Property Value

ReadOnlyMemory<char>

Methods

GetFullUrl()

Full URL building with Authority, path and scheme

public string GetFullUrl()

Returns

string

GetHeaderLineLength()

protected override int GetHeaderLineLength()

Returns

int

WriteHeaderLine(Span<byte>)

protected override int WriteHeaderLine(Span<byte> buffer)

Parameters

buffer Span<byte>

Returns

int