Developers
TypeDoc Reference
Interfaces
MixFetchResponseInit

@nymproject/mix-tunnelDocs


@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 (opens in a new tab)


status

status: number

Source

sdk/typescript/packages/mix-tunnel/src/types.ts:52 (opens in a new tab)


statusText

statusText: string

Source

sdk/typescript/packages/mix-tunnel/src/types.ts:53 (opens in a new tab)


headers

headers: [string, string][]

Source

sdk/typescript/packages/mix-tunnel/src/types.ts:54 (opens in a new tab)