Response
interface
interface Response extends BodyThis Fetch API interface represents the response to a request.
variable
var Response: { … }This Fetch API interface represents the response to a request.
Constructors
constructor
new Response(body?: BodyInit | null, init?: ResponseInit): ResponseProperties
headers
readonly headers: Headersok
readonly ok: booleanredirected
readonly redirected: booleanstatus
readonly status: numberstatusText
readonly statusText: stringtype
readonly type: ResponseTypeurl
readonly url: stringprototype
readonly prototype: ResponseMethods
clone
clone(): Responsejson
json(data: unknown, init?: ResponseInit): Responseerror
error(): Responseredirect
redirect(url: string | URL, status?: number): Response