Sign in Join
FPDoc Onlineexperiment

TRequestInterceptEvent procedure type

In unit HTTPRoute

Event type for request interception

Declaration

pascal
TRequestInterceptEvent = procedure(ARequest: TRequest; 
 AResponse: TResponse; 
 var aContinue: Boolean) of object

Arguments

ARequest

HTTP request being intercepted

AResponse

HTTP response being processed

aContinue

Controls whether processing should continue

Description

TRequestInterceptEvent defines an event type for intercepting HTTP requests before or after processing. It allows modifying requests/responses or controlling whether processing should continue.

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