Response
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1899
The Response interface of the Fetch API represents the response to a request.
Extends
Section titled “Extends”Properties
Section titled “Properties”
readonlybody:null|ReadableStream<any>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1878
Inherited from
Section titled “Inherited from”bodyUsed
Section titled “bodyUsed”
readonlybodyUsed:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1880
Inherited from
Section titled “Inherited from”
readonlyoptionalcf:any
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1955
headers
Section titled “headers”
readonlyheaders:Headers
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1935
The headers read-only property of the with the response.
readonlyok:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1941
The ok read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.
redirected
Section titled “redirected”
readonlyredirected:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1947
The redirected read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.
status
Section titled “status”
readonlystatus:number
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1923
The status read-only property of the Response interface contains the HTTP status codes of the response.
statusText
Section titled “statusText”
readonlystatusText:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1929
The statusText read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.
type:
"default"|"error"
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1961
The type read-only property of the Response interface contains the type of the response.
readonlyurl:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1953
The url read-only property of the Response interface contains the URL of the response.
webSocket
Section titled “webSocket”
readonlywebSocket:null|WebSocket
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1954
Methods
Section titled “Methods”arrayBuffer()
Section titled “arrayBuffer()”arrayBuffer():
Promise<ArrayBuffer>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1882
Returns
Section titled “Returns”Promise<ArrayBuffer>
Inherited from
Section titled “Inherited from”blob()
Section titled “blob()”blob():
Promise<Blob>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1892
Returns
Section titled “Returns”Promise<Blob>
Inherited from
Section titled “Inherited from”bytes()
Section titled “bytes()”bytes():
Promise<Uint8Array<ArrayBufferLike>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1884
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
Inherited from
Section titled “Inherited from”clone()
Section titled “clone()”clone():
Response
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1917
The clone() method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.
Returns
Section titled “Returns”Response
formData()
Section titled “formData()”formData():
Promise<FormData>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1890
Returns
Section titled “Returns”Promise<FormData>
Inherited from
Section titled “Inherited from”json()
Section titled “json()”json<
T>():Promise<T>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1888
Type Parameters
Section titled “Type Parameters”T
Returns
Section titled “Returns”Promise<T>
Inherited from
Section titled “Inherited from”text()
Section titled “text()”text():
Promise<string>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1886
Returns
Section titled “Returns”Promise<string>