Skip to main content
interface Response
implements Body

This Fetch API interface represents the response to a request.

Properties

readonly
headers: Headers
readonly
ok: boolean
readonly
redirected: boolean
readonly
status: number
readonly
statusText: string
readonly
type: ResponseType
readonly
url: string
variable Response

This Fetch API interface represents the response to a request.

type

{ readonly prototype: Response; new (body?: BodyInit | null, init?: ResponseInit): Response; json(data: unknown, init?: ResponseInit): Response; error(): Response; redirect(url: string | URL, status?: number): Response; }