Skip to content

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);

Description

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