Indy 9
|
TIdHTTPServer = class(TIdCustomHTTPServer)
TIdHTTPServer publishes the inherited OnCreatePostStream and OnCommandGet event handlers for the HTTP server implementation.
TIdHTTPServer also supports the Secure Hypertext Transport protocol (HTTPS) as described in the Internet Standards document:
Assign an instance of TIdServerInterceptOpenSSL to the Intercept property to allow use of the HTTPS protocol. For the Windows platform, you must install the Indy OpenSSL support .DLL's available at http://www.intelicom.si to enable Secure Socket Layer support.
property OnCommandGet;
The server implementation may assign a procedure to the OnCommandGet event handler to allow the server to respond to the HTTP commands. Note: When OnCommandGet is unassigned, the HTTP request will be read from the client connection and an HTTP prototcol error will be sent in the HTTP reponse.
OnCommandGet can be used to manipulate properties and methods of the RequestInfo and ResponseInfo parameters prior to allowing the server to send the response to the HTTP client.
property OnCreatePostStream;
The server implementation may assign a procedure to the event handler to allow responding to the event notification. The event handler can perform processing required prior to creation of a stream class instance. The event handler can create and assign a stream class instance to VPostStream when appropriate, or retun the value Nil. If VPostStream is unassigned, a TStringStream instance will be created prior to execution of a command handler for the HTTP POST request.