Skip to content
docs

FetchResponseLike

Defined in: verify.ts:25

The part of a fetch response the verifier reads.

optional body?: { cancel?: unknown; getReader?: { cancel: Promise<unknown>; read: Promise<{ done: boolean; value?: Uint8Array<ArrayBufferLike>; }>; }; } | null

Defined in: verify.ts:36

A stream lets the verifier stop reading at MAX_RESPONSE_BYTES; without one the deadline bounds the read.


optional headers?: object

Defined in: verify.ts:34

get(name): string | null

string

string | null


ok: boolean

Defined in: verify.ts:26


optional redirected?: boolean

Defined in: verify.ts:31


status: number

Defined in: verify.ts:27


optional type?: string

Defined in: verify.ts:33

opaqueredirect for a redirect a browser stopped under redirect: 'manual'.


optional url?: string

Defined in: verify.ts:30

The final URL, when the transport reports it: a different one means the request was redirected.

text(): Promise<string>

Defined in: verify.ts:28

Promise<string>