TROAsyncContext
Overview
The TROAsyncContext class implements an IROAsyncContext interface that provides communication via the Hypertext Transfer Protocol from the HTTP server side.
Location
- Unit: uROAsyncHttpServer.pas
- Ancestry: TInterfacedObject | TROAsyncContext
constructor Create
Creates a new instance with a supplied values.
constructor Create(aOwner: TROAsyncHTTPServer; aConnection: TROAsyncSocket)
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
Owner
The TROAsyncHTTPServer that is operated in this context.
property Owner: TROAsyncHTTPServer read
Request
Holds the TIPHTTPRequestHeaders class that represents an incoming request to the server.
property Request: TIPHTTPRequestHeaders read
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
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
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
Owner
The TROAsyncHTTPServer that is operated in this context.
property Owner: TROAsyncHTTPServer read
Request
Holds the TIPHTTPRequestHeaders class that represents an incoming request to the server.
property Request: TIPHTTPRequestHeaders read
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
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
UserData
Holds arbitrary data associated with this context.
property UserData: Pointer read write
constructor Create
Creates a new instance with a supplied values.
constructor Create(aOwner: TROAsyncHTTPServer; aConnection: TROAsyncSocket)
Parameters:
- aOwner: Master HTTP server
- aConnection: Client connection
Clear
Clears the internal state of the context.
procedure Clear
Disconnect
Disconnects current context
procedure Disconnect