TIPAsyncContext

Overview

The TIPAsyncContext class implements an IIPAsyncContext interface that provides communication via the Hypertext Transfer Protocol from the HTTP server side.

Location

  • Unit: uIPAsyncHttpServer.pas
  • Ancestry: TInterfacedObject | TIPAsyncContext

Implements

 

constructor Create

Creates a new instance.

constructor Create(aOwner: TIPAsyncHTTPServer; aConnection: TIPBaseAsyncSocket)

Parameters:

  • aOwner: Master HTTP server
  • aConnection: Client connection

Clear

Clears the internal state of the context.

procedure Clear

Disconnect

Disconnects current context

procedure Disconnect

Disconnected

Reports the current connection state (true when disconnected).

property Disconnected: Boolean read write

GetSelf

Returns the object that realizes the current interface.

function GetSelf: TIPAsyncContext

Owner

The TIPAsyncHTTPServer that is operated in this context.

property Owner: TIPAsyncHTTPServer read write

Request

Holds the TIPHTTPRequestHeaders class that represents an incoming request to the server.

property Request: TIPHTTPRequestHeaders read write

RequestData

Stores the array of bytes that holds incoming data.

property RequestData: TBytes read write

Response

Holds the TIPHTTPRequestHeaders class that represents an outgoing request to the client.

property Response: TIPHTTPResponseHeaders read write

ResponseData

Stores the array of bytes that holds outgoing data.

property ResponseData: TBytes read write

ResponseSent

Indicates if a response has been sent to the client.

property ResponseSent: Boolean read write

SendResponse

Sents Response to client.

procedure SendResponse

UserData

Holds arbitrary data associated with this context.

property UserData: Pointer read write

 

Disconnected

Reports the current connection state (true when disconnected).

property Disconnected: Boolean read write

Owner

The TIPAsyncHTTPServer that is operated in this context.

property Owner: TIPAsyncHTTPServer read write

Request

Holds the TIPHTTPRequestHeaders class that represents an incoming request to the server.

property Request: TIPHTTPRequestHeaders read write

RequestData

Stores the array of bytes that holds incoming data.

property RequestData: TBytes read write

Response

Holds the TIPHTTPRequestHeaders class that represents an outgoing request to the client.

property Response: TIPHTTPResponseHeaders read write

ResponseData

Stores the array of bytes that holds outgoing data.

property ResponseData: TBytes read write

ResponseSent

Indicates if a response has been sent to the client.

property ResponseSent: Boolean read write

UserData

Holds arbitrary data associated with this context.

property UserData: Pointer read write

 

constructor Create

Creates a new instance.

constructor Create(aOwner: TIPAsyncHTTPServer; aConnection: TIPBaseAsyncSocket)

Parameters:

  • aOwner: Master HTTP server
  • aConnection: Client connection

Clear

Clears the internal state of the context.

procedure Clear

Disconnect

Disconnects current context

procedure Disconnect

GetSelf

Returns the object that realizes the current interface.

function GetSelf: TIPAsyncContext

SendResponse

Sents Response to client.

procedure SendResponse

See Also