Skip to Content
19 November 2026: gateway operators, apply the nginx2root CVE mitigation.

@nymproject/mix-fetch • Docs


@nymproject/mix-fetch / createMixFetch

Function: createMixFetch()

createMixFetch(opts?): Promise<(url, init?) => Promise<Response>>

Convenience: set up the tunnel and return a fetch-bound function. Equivalent to await setupMixTunnel(opts); return mixFetch;. Safe to call multiple times; the underlying tunnel is a singleton.

Parameters

• opts?: SetupMixTunnelOpts

Returns

Promise<(url, init?) => Promise<Response>>

Source

mix-fetch/src/index.ts:62 

Last updated on