HttpModifierCallback
type HttpModifierCallback: (url, headers, body) => [Record<string, string>, string];
Function to be triggered on a new HTTP request (or response).
Parameters
| Parameter | Type | Description |
|---|---|---|
url | string | The URL of the request (or response). |
headers | Record<string, string> | The headers of the request (or response). |
body | string | The body of the request (or response). |
Returns
The modified headers and body.