This topic provides the typical sequence of events in the life of an HTTP request handled by an ATL Server Web application. For a simplified diagram of these events, see SRF Request Architecture.
Typical Sequence of Events
Client
- The client sends an HTTP request to the Web server.
IIS
- IIS looks at the requested URL.
- IIS checks the application mappings for the virtual directory specified in the URL.
- IIS uses ISAPI to pass the request to the ISAPI extension DLL associated with the requested resource.
ISAPI Extension DLL
Web Application DLL
- If the requested resource is a SRF, the request handler calls in to the ISAPI extension's SRF cache to see if the SRF has already been parsed.
- If the response file has not already been parsed, the file is parsed, references to replacement methods are resolved, included handlers and subhandlers are loaded, and the parsed file is added to the cache.
During this process, further request handlers, SRFs, and Web application DLLs may be loaded, initialized, and stored in the ISAPI extension's caches.
- When the parsed version of the server response file has been obtained, the file is rendered. The static portions of the file are written to the response stream, and dynamic portions are generated by calling into the replacement methods and by following the control structures in the file.
ISAPI Extension DLL
- When the response is complete or the buffer is full, the ISAPI extension passes the response to IIS.
IIS
- IIS passes the response back to the client.
Client
- The client receives the response.
See Also
ATL Server | ATL Server Reference | ATL Server Samples | SRF Request Architecture