Developers
TypeDoc Reference
Functions
mixFetch

@nymproject/mix-fetchDocs


@nymproject/mix-fetch / mixFetch

Function: mixFetch()

mixFetch(url, init?): Promise<Response>

Fetch over the mixnet. Drop-in replacement for the browser fetch().

Requires the tunnel to be up: call setupMixTunnel(opts) first, or use createMixFetch(opts) to combine setup + fetch.

Parameters

url: string

init?: RequestInit

Returns

Promise<Response>

Source

mix-fetch/src/index.ts:39 (opens in a new tab)