CustWeb unit
Base functionality for HTTP hosting implementations
The custweb unit provides the base functionality common to all HTTP hosting implementations in Free Pascal: CGI, FastCGI, HTTP server and Apache loadable modules.
It contains the foundational classes TWebHandler and TCustomWebApplication that handle HTTP requests and provide web application functionality.
The unit supports module-based request handling, error management, event logging, and various configuration options for different hosting environments. It provides the infrastructure for routing requests to appropriate HTTP modules and managing the complete request-response cycle.
Classes and records
EFpWebError | class | Exception class for web application errors |
TCustomWebApplication | class | Base class for web applications with integrated request handling |
TWebHandler | class | Base class for handling HTTP requests in web applications |
Procedures and functions
ExceptionToHTML | procedure | Utility function to format exceptions as HTML error pages |
Types
TGetModuleEvent | procedure type | Event type for determining HTTP module class for a request |
TInitModuleEvent | procedure type | Event type for HTTP module initialization |
TLogEvent | procedure type | Event type for logging web application events |
TOnShowRequestException | procedure type | Event type for custom exception handling in HTTP requests |
Uses
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
