Sign in Join
FPDoc Onlineexperiment

TRequestInterceptorList.RunIntercepts function

Member of TRequestInterceptorListpublicIn unit HTTPRoute

Executes interceptors at specified timing

Declaration

pascal
function RunIntercepts(RunAt: TInterceptAt; ARequest: TRequest; 
 AResponse: TResponse): Boolean; virtual

Arguments

RunAt

Timing when to run interceptors

ARequest

HTTP request to process

AResponse

HTTP response to process

Function result

True if processing should continue

Description

RunIntercepts executes all active interceptors that are configured to run at the specified timing. It processes request and response through each interceptor and returns whether processing should continue.

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