Response
Response: {(
body?,init?):Response;prototype:Response;error:Response;json:Response;redirect:Response; }
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1606
This Fetch API interface represents the response to a request.
Type Declaration
Section titled “Type Declaration”Parameters
Section titled “Parameters”null | BodyInit
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?”Returns
Section titled “Returns”redirect()
Section titled “redirect()”redirect(
url,status?):Response
Parameters
Section titled “Parameters”string
status?
Section titled “status?”number