RequestInterceptor
public protocol RequestInterceptor
A protocol for callback/collector-level request interception.
Conforming types (e.g., IdpCollector) can modify the outgoing HTTP request
when a ContinueNode builds its submission request via asRequest().
This is invoked per-callback/collector inside Journey’s JourneyContinueNode
and DaVinci’s Connector, allowing individual actions to inject headers,
parameters, or replace the request entirely based on their internal state.
For workflow-wide request customization, use modules like CustomHeader instead.
Note
Not related toHttpRequestInterceptor in PingNetwork, which operates
at the HTTP client transport level via HttpClientConfig.onRequest(_:).
-
Intercepts the request before it is sent.
Declaration
Swift
func intercept(context: FlowContext, request: Request) -> RequestParameters
contextThe current flow context.
requestThe request to modify.
Return Value
The original or modified request.
View on GitHub