Sign in Join
FPDoc Onlineexperiment

TRouteEvent procedure type

In unit HTTPRoute

Event type for route handlers

Declaration

pascal
TRouteEvent = procedure(ARequest: TRequest; AResponse: TResponse)
 of object

Arguments

ARequest

HTTP request to handle

AResponse

HTTP response to generate

Description

TRouteEvent defines an object method type for handling HTTP requests in event-based routes. It provides object-oriented request handling with sender context.

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