AsyncHttpContext

Overview

Represents HTTP-specific information about an individual asynchronous HTTP request (AsyncHttpRequest).

Location

 

constructor

 

constructor(worker: AsyncHttpServerWorker)

 

AsyncHttpContext(AsyncHttpServerWorker worker)

 

Sub New(worker As AsyncHttpServerWorker)

Parameters:

  • worker:

Connection

Gets connection of the AsyncHttpServerWorker which is specified when a new instance of AsyncHttpContext is created.

 

property Connection: Connection read;

 

Connection Connection { get; }

 

ReadOnly Property Connection() As Connection

CurrentRequest

Gets AsyncHttpRequest object for the current request.

 

property CurrentRequest: AsyncHttpRequest read;

 

AsyncHttpRequest CurrentRequest { get; }

 

ReadOnly Property CurrentRequest() As AsyncHttpRequest

CurrentResponse

Gets HttpRequestResponse object for the current response.

 

property CurrentResponse: HttpServerResponse read;

 

HttpServerResponse CurrentResponse { get; }

 

ReadOnly Property CurrentResponse() As HttpServerResponse

ResponseSent

Determines whether the response was sent.

 

property ResponseSent: Boolean read write;

 

Boolean ResponseSent { get; set; }

 

Property ResponseSent() As Boolean

SendResponse

Sends a response message matching a given asynchronous request context.

 

method SendResponse

 

void SendResponse()

 

Sub SendResponse()

UserData

Gets or sets user information for the current HTTP request.

 

property UserData: Object read write;

 

Object UserData { get; set; }

 

Property UserData() As Object

 

Connection

Gets connection of the AsyncHttpServerWorker which is specified when a new instance of AsyncHttpContext is created.

 

property Connection: Connection read;

 

Connection Connection { get; }

 

ReadOnly Property Connection() As Connection

CurrentRequest

Gets AsyncHttpRequest object for the current request.

 

property CurrentRequest: AsyncHttpRequest read;

 

AsyncHttpRequest CurrentRequest { get; }

 

ReadOnly Property CurrentRequest() As AsyncHttpRequest

CurrentResponse

Gets HttpRequestResponse object for the current response.

 

property CurrentResponse: HttpServerResponse read;

 

HttpServerResponse CurrentResponse { get; }

 

ReadOnly Property CurrentResponse() As HttpServerResponse

ResponseSent

Determines whether the response was sent.

 

property ResponseSent: Boolean read write;

 

Boolean ResponseSent { get; set; }

 

Property ResponseSent() As Boolean

UserData

Gets or sets user information for the current HTTP request.

 

property UserData: Object read write;

 

Object UserData { get; set; }

 

Property UserData() As Object

 

constructor

 

constructor(worker: AsyncHttpServerWorker)

 

AsyncHttpContext(AsyncHttpServerWorker worker)

 

Sub New(worker As AsyncHttpServerWorker)

Parameters:

  • worker:

SendResponse

Sends a response message matching a given asynchronous request context.

 

method SendResponse

 

void SendResponse()

 

Sub SendResponse()