Web.HTTPApp.IWebAppServices180.InitContext
Delphi
procedure InitContext(WebModule: TComponent; Request: TWebRequest; Response: TWebResponse);
C++
virtual void __fastcall InitContext(System::Classes::TComponent* WebModule, TWebRequest* Request, TWebResponse* Response) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | IWebAppServices180 |
Description
Creates and initializes the Web context for the current Web request.
InitContext is called when the Web Broker application first receives a request message to set up the Web context before the application attempts to handle the request. It creates and sets up the global Web context, which can be accessed by calling the global WebContext function. It also performs any other initializations that ready the application for handling a new request message.
WebModuleList lists the currently active Web modules in the Web Broker application and provides access to all Web module factories so that the application can create any new modules it needs for processing the request message.
Request describes the new request message.
Response is the response object that the Web Broker application should fill out when handling the current request.