Unit 'CustWeb' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

TWebHandler.HandleRequest

Routes and processes an HTTP request to the appropriate handler

Declaration

Source position: custweb.pp line 91

public procedure TWebHandler.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

LegacyRouting

  

Controls whether to use legacy request routing instead of HTTP router

ShowRequestException


Documentation generated on: Jan 27 2026