@nymproject/mix-fetch • Docs
@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>