Response

interface

interface Response extends Body

This 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): Response

Properties

headers

readonly headers: Headers

ok

readonly ok: boolean

redirected

readonly redirected: boolean

status

readonly status: number

statusText

readonly statusText: string

type

readonly type: ResponseType

url

readonly url: string

prototype

readonly prototype: Response

Methods

clone

clone(): Response

json

json(data: unknown, init?: ResponseInit): Response

error

error(): Response

redirect

redirect(url: string | URL, status?: number): Response