Add the possibilty to fpWeb to initialize modules between their creation and the call to HandleRequest
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
Sometimes it is useful to set fields of a TCustomHTTPModule before it's HandleRequest method is called (e.g. a database connection).
The attached patch adds an event to TWebHandler to allow such an initialization. It is called between the creation of the module and the call to it's HandleRequest method. Also a method "AfterModuleInit" has been added to TCustomHTTPModule which is called after the event handler has been called (independent of the fact whether a handler is attached to the TWebHandler or not).
Additional information:
If possible please merge to 2.6.1.
Mantis conversion info:
- Mantis ID: 21441
- OS: Win32
- OS Build: NT 6.1 (7)
- Platform: i386
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 20494 (#7ab32986)
- Target version: 3.0.0