Response
Defined in: node_modules/.pnpm/@types+node@24.8.1/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.14.0/node_modules/undici-types/fetch.d.ts:34
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”_Response.arrayBufferblob()
Section titled “blob()”readonly blob: () => Promise<Blob>;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:35
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”_Response.blobreadonly body: | ReadableStream<any> | null;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:31
Inherited from
Section titled “Inherited from”_Response.bodybodyUsed
Section titled “bodyUsed”readonly bodyUsed: boolean;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:32
Inherited from
Section titled “Inherited from”_Response.bodyUsedbytes()
Section titled “bytes()”readonly bytes: () => Promise<Uint8Array<ArrayBufferLike>>;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:36
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
Inherited from
Section titled “Inherited from”_Response.bytesclone()
Section titled “clone()”readonly clone: () => Response;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:206
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”_Response.cloneformData()
Section titled “formData()”readonly formData: () => Promise<FormData>;Defined in: node_modules/.pnpm/undici-types@7.14.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.formDataheaders
Section titled “headers”readonly headers: Headers;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:198
Inherited from
Section titled “Inherited from”_Response.headersjson()
Section titled “json()”readonly json: () => Promise<unknown>;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:55
Returns
Section titled “Returns”Promise<unknown>
Inherited from
Section titled “Inherited from”_Response.jsonreadonly ok: boolean;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:199
Inherited from
Section titled “Inherited from”_Response.okredirected
Section titled “redirected”readonly redirected: boolean;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:204
Inherited from
Section titled “Inherited from”_Response.redirectedstatus
Section titled “status”readonly status: number;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:200
Inherited from
Section titled “Inherited from”_Response.statusstatusText
Section titled “statusText”readonly statusText: string;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:201
Inherited from
Section titled “Inherited from”_Response.statusTexttext()
Section titled “text()”readonly text: () => Promise<string>;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:56
Returns
Section titled “Returns”Promise<string>
Inherited from
Section titled “Inherited from”_Response.textreadonly type: ResponseType;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:202
Inherited from
Section titled “Inherited from”_Response.typereadonly url: string;Defined in: node_modules/.pnpm/undici-types@7.14.0/node_modules/undici-types/fetch.d.ts:203
Inherited from
Section titled “Inherited from”_Response.url