Skip to main content

HttpModifierCallback

type HttpModifierCallback: (url, headers, body) => [Record<string, string>, string];

Function to be triggered on a new HTTP request (or response).

Parameters

ParameterTypeDescription
urlstringThe URL of the request (or response).
headersRecord<string, string>The headers of the request (or response).
bodystringThe body of the request (or response).

Returns

The modified headers and body.