Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Response

This Fetch API interface represents the response to a request.

interface Response extends Body {
readonly headers: Headers;
readonly ok: boolean;
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
readonly type: ResponseType;
readonly url: string;
clone(): Response;
}
var Response: {
prototype: Response;
new (body?: BodyInit | null, init?: ResponseInit): Response;
json(data: unknown, init?: ResponseInit): Response;
error(): Response;
redirect(url: string | URL, status?: number): Response;
}
;

§Extends

§Properties

§
readonly headers: Headers
[src]
§
readonly ok: boolean
[src]
§
readonly redirected: boolean
[src]
§
readonly status: number
[src]
§
readonly statusText: string
[src]
§
readonly type: ResponseType
[src]
§
readonly url: string
[src]

§Methods