Response
Defined in: node_modules/.pnpm/@types+node@24.6.2/node_modules/@types/node/web-globals/fetch.d.ts:43
Extends
Section titled “Extends”Properties
Section titled “Properties”arrayBuffer()
Section titled “arrayBuffer()”readonly arrayBuffer: () => Promise<ArrayBuffer>;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:34
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”_Response.arrayBuffer
blob()
Section titled “blob()”readonly blob: () => Promise<Blob>;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:35
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”_Response.blob
readonly body: | null| ReadableStream<any>;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:31
Inherited from
Section titled “Inherited from”_Response.body
bodyUsed
Section titled “bodyUsed”readonly bodyUsed: boolean;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:32
Inherited from
Section titled “Inherited from”_Response.bodyUsed
bytes()
Section titled “bytes()”readonly bytes: () => Promise<Uint8Array<ArrayBufferLike>>;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:36
Returns
Section titled “Returns”Promise
<Uint8Array
<ArrayBufferLike
>>
Inherited from
Section titled “Inherited from”_Response.bytes
clone()
Section titled “clone()”readonly clone: () => Response;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:206
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”_Response.clone
formData()
Section titled “formData()”readonly formData: () => Promise<FormData>;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:54
Returns
Section titled “Returns”Example
Section titled “Example”import { Busboy } from '@fastify/busboy'import { Readable } from 'node:stream'
const response = await fetch('...')const busboy = new Busboy({ headers: { 'content-type': response.headers.get('content-type') } })
// handle events emitted from `busboy`
Readable.fromWeb(response.body).pipe(busboy)
Inherited from
Section titled “Inherited from”_Response.formData
headers
Section titled “headers”readonly headers: Headers;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:198
Inherited from
Section titled “Inherited from”_Response.headers
json()
Section titled “json()”readonly json: () => Promise<unknown>;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:55
Returns
Section titled “Returns”Promise
<unknown
>
Inherited from
Section titled “Inherited from”_Response.json
readonly ok: boolean;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:199
Inherited from
Section titled “Inherited from”_Response.ok
redirected
Section titled “redirected”readonly redirected: boolean;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:204
Inherited from
Section titled “Inherited from”_Response.redirected
status
Section titled “status”readonly status: number;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:200
Inherited from
Section titled “Inherited from”_Response.status
statusText
Section titled “statusText”readonly statusText: string;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:201
Inherited from
Section titled “Inherited from”_Response.statusText
text()
Section titled “text()”readonly text: () => Promise<string>;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:56
Returns
Section titled “Returns”Promise
<string
>
Inherited from
Section titled “Inherited from”_Response.text
readonly type: ResponseType;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:202
Inherited from
Section titled “Inherited from”_Response.type
readonly url: string;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:203
Inherited from
Section titled “Inherited from”_Response.url