TWebApplication = class(TWebRequestHandler)
class PASCALIMPLEMENTATION TWebApplication : public Web::Webreq::TWebRequestHandler
TWebApplication encapsulates a Web server application.
TWebApplication provides the fundamental behavior of a Web server application. TWebApplication provides methods to create TWebRequest and TWebResponse objects that represent HTTP request messages and their responses, pass these objects to the dispatcher so that the response can be filled in, and send the response back to the Web client.
- For Apache applications, this variable is initialized to a TApacheApplication object in the Web.ApacheApp unit.
- For CGI applications, this variable is initialized to a TCGIApplication object in the Web.CGIApp unit.
- For ISAPI applications, this variable is initialized to a TISAPIApplication object in the Web.Win.ISAPIApp unit.
Do not add a Forms unit (either Vcl.Forms or FMX.Forms) to the uses list of the project (Delphi) or include Vcl.Forms.hpp or FMX.Forms.hpp in the project source file (C++). These actions declare a conflicting Application variable of type TApplication.
In addition, do not add the Web.ApacheApp unit or the Web.Win.ISAPIApp unit to a CGI application, and do not add the Web.CGIApp unit to an Apache or ISAPI application. The CGIApp unit, the ISAPIApp unit, and the ApacheApp unit each create the initial instance of the Application variable. Including more than one of these units in the uses list causes the memory for the object created in the first unit to be lost.