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

THTTPRouter.RegisterInterceptor

Registers a request interceptor

Declaration

Source position: httproute.pp line 251

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


Documentation generated on: Jan 27 2026