Sign in Join
FPDoc Onlineexperiment

TWebHandler.HandleRequest procedure

Member of TWebHandlerpublicIn unit CustWeb

Routes and processes an HTTP request to the appropriate handler

Declaration

pascal
procedure HandleRequest(ARequest: TRequest; AResponse: TResponse)
 ; virtual

Arguments

ARequest

The HTTP request to route and process

AResponse

The HTTP response to populate

Description

Routes an HTTP request to the appropriate handler using either legacy routing or the HTTP router system. Catches and handles any exceptions that occur during request processing by calling the exception handler.

Errors

Catches all exceptions during request processing and handles them via ShowRequestException.

See also

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