RequestTransform
Callable
Parameters
original: RequestOptions<Dictionary>
Request options to be modified.
Returns undefined | null | false | RequestOptions<Dictionary> | skip | unchanged
The modified request options to enqueue,
'unchanged'to keep the original options as-is, or a falsy value /'skip'to exclude the request from the queue.
Takes a RequestOptions object and changes its attributes in a desired way. This user-function is used by enqueueLinks to modify request options before they are converted to Request instances.