Response
Response: {(
body?
,init?
):Response
;prototype
:Response
;error
:Response
;json
:Response
;redirect
: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.
Type declaration
Section titled “Type declaration”Parameters
Section titled “Parameters”null
| BodyInit
ResponseInit
Returns
Section titled “Returns”prototype
Section titled “prototype”prototype:
Response
error()
Section titled “error()”error():
Response
Returns
Section titled “Returns”json()
Section titled “json()”json(
any
,maybeInit?
):Response
Parameters
Section titled “Parameters”any
maybeInit?
Section titled “maybeInit?”Response
| ResponseInit
Returns
Section titled “Returns”redirect()
Section titled “redirect()”redirect(
url
,status?
):Response
Parameters
Section titled “Parameters”string
status?
Section titled “status?”number