Web.CGIApp.TCGIApplication.Run
Delphi
procedure Run; override;
C++
virtual void __fastcall Run();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Web.CGIApp.pas Web.CGIApp.hpp |
Web.CGIApp | TCGIApplication |
Description
Executes the CGI application in response to an HTTP request message.
When creating a new project, the IDE automatically creates a main program block in the project file that calls the Run method. When the application is started in response to an HTTP request message, the CGI application's Run method is called.
After calling the inherited Run method to set up the default error handler and shut down sequence for the application, the TCGIApplication Run method creates the appropriate request and response objects for the HTTP request message that started the CGI application. Run calls the HandleRequest method to pass the request and response on to the dispatcher where the response is filled out and sent. Finally, Run frees the request and response objects.