Variable Response
Response: {
prototype: Response;
error(): Response;
json(data: any, init?: ResponseInit): Response;
redirect(url: string | URL, status?: number): Response;
new (body?: BodyInit, init?: ResponseInit): Response;
}
prototype: Response;
error(): Response;
json(data: any, init?: ResponseInit): Response;
redirect(url: string | URL, status?: number): Response;
new (body?: BodyInit, init?: ResponseInit): Response;
}
Type declaration
- new (body?, init?): Response
Parameters
Optional
body: BodyInitOptional
init: ResponseInit
Returns Response
prototype: Response
error:function
json:function
- json(data, init?): Response
Parameters
- data: any
Optional
init: ResponseInit
Returns Response
redirect:function
MDN Reference