Response
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1609
This Fetch API interface represents the response to a request.
Extends
Section titled “Extends”Body
Properties
Section titled “Properties”
readonly
body:null
|ReadableStream
<any
>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1588
Inherited from
Section titled “Inherited from”Body.body
bodyUsed
Section titled “bodyUsed”
readonly
bodyUsed:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1590
Inherited from
Section titled “Inherited from”Body.bodyUsed
readonly
optional
cf:any
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1637
headers
Section titled “headers”
readonly
headers:Headers
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1629
readonly
ok:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1631
redirected
Section titled “redirected”
readonly
redirected:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1633
status
Section titled “status”
readonly
status:number
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1625
statusText
Section titled “statusText”
readonly
statusText:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1627
type:
"default"
|"error"
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1639
readonly
url:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1635
webSocket
Section titled “webSocket”
readonly
webSocket:null
|WebSocket
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1636
Methods
Section titled “Methods”arrayBuffer()
Section titled “arrayBuffer()”arrayBuffer():
Promise
<ArrayBuffer
>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1592
Returns
Section titled “Returns”Promise
<ArrayBuffer
>
Inherited from
Section titled “Inherited from”Body.arrayBuffer
blob()
Section titled “blob()”blob():
Promise
<Blob
>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1602
Returns
Section titled “Returns”Promise
<Blob
>
Inherited from
Section titled “Inherited from”Body.blob
bytes()
Section titled “bytes()”bytes():
Promise
<Uint8Array
<ArrayBufferLike
>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1594
Returns
Section titled “Returns”Promise
<Uint8Array
<ArrayBufferLike
>>
Inherited from
Section titled “Inherited from”Body.bytes
clone()
Section titled “clone()”clone():
Response
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1623
Returns
Section titled “Returns”Response
formData()
Section titled “formData()”formData():
Promise
<FormData
>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1600
Returns
Section titled “Returns”Promise
<FormData
>
Inherited from
Section titled “Inherited from”Body.formData
json()
Section titled “json()”json<
T
>():Promise
<T
>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1598
Type Parameters
Section titled “Type Parameters”T
Returns
Section titled “Returns”Promise
<T
>
Inherited from
Section titled “Inherited from”Body.json
text()
Section titled “text()”text():
Promise
<string
>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:1596
Returns
Section titled “Returns”Promise
<string
>
Inherited from
Section titled “Inherited from”Body.text