Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/ext/fetch/lib.deno_fetch.d.ts>Response

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Response
implements Body
import { type Response } from "https://deno.land/x/deno@v1.38.4/ext/fetch/lib.deno_fetch.d.ts";

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
import { Response } from "https://deno.land/x/deno@v1.38.4/ext/fetch/lib.deno_fetch.d.ts";

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; }