Sign in Join
FPDoc Onlineexperiment

THTTPRouter.RegisterInterceptor procedure

Member of THTTPRouterpublicIn unit HTTPRoute

Registers a request interceptor

Declaration

pascal
procedure RegisterInterceptor(const aName: string; 
 aEvent: TRequestInterceptEvent; 
 aAt: TInterceptAt=iaBefore)

Arguments

aName

Unique name for the interceptor

aEvent

Event handler for the interceptor

aAt

Timing when interceptor should run

Description

RegisterInterceptor adds a new request interceptor to the router. It configures the interceptor with the specified name, event handler, and timing.

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