Difference between revisions of "THttpAppSrv"
Jump to navigation
Jump to search
(→Events) |
|||
| Line 81: | Line 81: | ||
{| | {| | ||
| − | | | + | | valign="top" width="150" | [[THttpServer.OnAuthGetPassword | OnAuthGetPassword]] |||| Triggered to get the password for authentication. |
|- | |- | ||
| − | | valign="top" | [[ | + | | valign="top" | [[THttpServer.OnAuthGetType | OnAuthGetType]] |||| TAuthGetTypeEvent. |
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnAuthNtlmBeforeValidate | OnAuthNtlmBeforeValidat]] |||| TAuthNtlmBeforeValidate. | ||
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnAuthResult | OnAuthResult]] |||| TAuthResultEvent. | ||
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnBeforeProcessRequest | OnBeforeProcessRequest]] |||| Triggered before processing any request. | ||
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnClientConnect | OnClientConnect]] |||| Triggered when a client has connected. | ||
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnClientDisconnect | OnClientDisconnect]] |||| Triggered when a client is about to disconnect. | ||
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnDeleteSession | OnDeleteSession]] |||| Triggered when a session is deleted. | ||
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnFilterDirEntry | OnFilterDirEntry]] |||| Triggered to filter directory entries. | ||
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnGetDocument | OnGetDocument]] |||| Triggered when a client sent GET request. | ||
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnHeadDocument | OnHeadDocument]] |||| Triggered when a client sent HEAD request. | ||
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnHttpRequestDone | OnHttpRequestDone]] |||| A HTTP request has been handled on behalf of a client. | ||
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnPostDocument | OnPostDocument]] |||| Triggered when a client sent POST request. | ||
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnPostedData | OnPostedData]] |||| Triggered when client post data and you accepted it from OnPostDocument event. | ||
| + | |- | ||
| + | | width="90" valign="top" | [[THttpServer.OnServerStarted| OnServerStarted]] |||| Triggered when server has started listening. | ||
| + | |- | ||
| + | | valign="top" | [[THttpServer.OnServerStopped | OnServerStopped]] |||| Triggered when server has stopped listening. | ||
|} | |} | ||
Revision as of 10:13, 22 May 2009
Main page -> ICS component reference -> Edit new component
Contents
Overview
| unit | OverbyteIcsHttpAppServer | |
| inheritance | THttpAppSrv -> THttpServer -> TComponent |
THttpAppSrv is implementing the core of an HTTP application server. It is used to build powerful and large web applications with dynamic pages.
Properties
Object inspector properties
| Addr | Binds the server to a specific IP-address and only receives request for that IP+Port. | |
| AuthDigestMethod | Select the method to be used for digest authentication. | |
| AuthDigestNonceLifeTimeMin | Life time for digest nonce. | |
| AuthRealm | Name space for authentication. | |
| AuthTypes | Allowed authentications methods. | |
| DefaultDoc | Name of the default document. | |
| DocDir | Path name for the root directory where documents are stored. | |
| IcsLogger | Reference to the TIcsLgger component. | |
| KeepAliveTimeSec | Keep alive time expressed in seconds. | |
| LingerOnOff | How linger must be done. This affect the way sockets are closed. | |
| LingerTimeout | How long should the socket linger when closing. | |
| ListenBackog | How many connections can be queued by the OS before refusing new connections. | |
| MaxClients | Maximum number of simultaneous client accepted. Use 0 if not limit desired. | |
| MaxRequestsKeepAlive | MaxRequestsKeepAlive. | |
| Name | Component name. | |
| Options | Affect how the component is operating. | |
| Port | TCP port number the component has to listen to. | |
| SessionTimeout | Time in second for session expiration. | |
| Tag | Tag. | |
| TemplateDir | Path where the component search for dynamic pages templates. |
Runtime properties
| ClientCount | Number of currently connected clients. | |
| Client | Array of connected clients. Index is from 0 to ClientCount - 1. | |
| ClientClass | Reference to the class the component has to instanciate for each client. | |
| SessionCount | Number of active sessions. | |
| Sessions | Array of active sessions. Index if from 0 to SessionCount - 1. | |
| WSessions | Reference to TWebSessions instance used to manage sessions. | |
| WSocketServer | Reference to the underlaying TWSocketServer. |
Methods
| Name | Short description | |
| Name | Short description |
Events
| OnAuthGetPassword | Triggered to get the password for authentication. | |
| OnAuthGetType | TAuthGetTypeEvent. | |
| OnAuthNtlmBeforeValidat | TAuthNtlmBeforeValidate. | |
| OnAuthResult | TAuthResultEvent. | |
| OnBeforeProcessRequest | Triggered before processing any request. | |
| OnClientConnect | Triggered when a client has connected. | |
| OnClientDisconnect | Triggered when a client is about to disconnect. | |
| OnDeleteSession | Triggered when a session is deleted. | |
| OnFilterDirEntry | Triggered to filter directory entries. | |
| OnGetDocument | Triggered when a client sent GET request. | |
| OnHeadDocument | Triggered when a client sent HEAD request. | |
| OnHttpRequestDone | A HTTP request has been handled on behalf of a client. | |
| OnPostDocument | Triggered when a client sent POST request. | |
| OnPostedData | Triggered when client post data and you accepted it from OnPostDocument event. | |
| OnServerStarted | Triggered when server has started listening. | |
| OnServerStopped | Triggered when server has stopped listening. |
How to