output
    Preparing search index...

    Variable outputFetchConst

    outputFetch: OutputFetch = ...

    A fetch compliant function, that wraps undici's fetch.

    Behaves the same as any fetch function except:

    • Sets a request header called x-request-trace-id with a random UUID;
    • Sends the request, response, error and/or failure to the Trace system;
    • Emits a http:request event on every call (success, error, failure).

    URL string, URL object or Request object (undici's or Node's)

    Request options

    The HTTP response