Sign in Join
FPDoc Onlineexperiment

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

EFpWebErrorclassException class for web application errors
TCustomWebApplicationclassBase class for web applications with integrated request handling
TWebHandlerclassBase class for handling HTTP requests in web applications

Procedures and functions

ExceptionToHTMLprocedureUtility function to format exceptions as HTML error pages

Types

TGetModuleEventprocedure typeEvent type for determining HTTP module class for a request
TInitModuleEventprocedure typeEvent type for HTTP module initialization
TLogEventprocedure typeEvent type for logging web application events
TOnShowRequestExceptionprocedure typeEvent type for custom exception handling in HTTP requests

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.