Registers a request interceptor
Source position: httproute.pp line 251
public procedure THTTPRouter.RegisterInterceptor( |
const aName: string; |
aEvent: TRequestInterceptEvent; |
aAt: TInterceptAt = iaBefore |
); |
aName |
|
Unique name for the interceptor |
aEvent |
|
Event handler for the interceptor |
aAt |
|
Timing when interceptor should run |
RegisterInterceptor adds a new request interceptor to the router. It configures the interceptor with the specified name, event handler, and timing.