* First sweep packages + some minor tweaking * Second sweep * Regenerate lockfile + package.json mods * Regenerate lockfile again * Fix CI * Fix CI again * All building properly * unblock * Tweak examples * Comments + readme + fix rotten unit test * First pass docs * Big pass * Massive pass on new docs * Update integrations.md w mobile * Partial overhaul review * new playground + big pass * new fix lychee err * IPR notice tweak
1.6 KiB
@nymproject/mix-tunnel • Docs
@nymproject/mix-tunnel / MixFetchResponseInit
Interface: MixFetchResponseInit
Pre-serialised response shape produced by smolmix-wasm::mixFetch. Designed
for Comlink transfer (Uint8Array + primitive arrays survive structured clone).
headers is a sequence of [name, value] pairs rather than a record so that
repeated names like Set-Cookie, Vary, Link, WWW-Authenticate survive.
The TS facade reconstructs a real Response via:
new Response(raw.body, { status: raw.status, statusText: raw.statusText, headers: new Headers(raw.headers), })
Properties
body
body:
Uint8Array
Source
sdk/typescript/packages/mix-tunnel/src/types.ts:51
status
status:
number
Source
sdk/typescript/packages/mix-tunnel/src/types.ts:52
statusText
statusText:
string
Source
sdk/typescript/packages/mix-tunnel/src/types.ts:53
headers
headers: [
string,string][]