Add comment in interceptorBuilder.js to clarify which api is for setup, and which api is used by the proxy.

This commit is contained in:
Sander Declerck 2025-11-24 15:13:25 +01:00
parent 9a1092199d
commit 5834229427
No known key found for this signature in database

View file

@ -115,6 +115,7 @@ function createRequestContext(targetUrl, eventEmitter) {
return modifiedBody;
}
// These functions are invoked in the proxy, allowing to apply the configured modifications
return {
blockResponse,
modifyRequestHeaders: modifyRequestHeaders,
@ -123,6 +124,7 @@ function createRequestContext(targetUrl, eventEmitter) {
};
}
// These functions are used to setup the modifications
return {
targetUrl,
blockMalware: blockMalwareSetup,