Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/lib.deno_runtime.d.ts>__fetch.Response

A modern runtime for JavaScript and TypeScript.
Go to Latest
class __fetch.Response
implements [__domTypes.Response]
import { __fetch } from "https://deno.land/x/deno@v0.30.0/cli/js/lib.deno_runtime.d.ts";
const { Response } = __fetch;

Constructors

new
Response(
url: string,
status: number,
headersList: Array<[string, string]>,
rid: number,
redirected_: boolean,
body_?: null | Body,
)

Properties

readonly
body: Body
bodyUsed: boolean
readonly
ok: boolean
readonly
redirected: boolean
readonly
status: number
statusText: string
readonly
trailer: Promise<__domTypes.Headers>
readonly
type: string
readonly
url: string

Methods

arrayBuffer(): Promise<ArrayBuffer>
blob(): Promise<__domTypes.Blob>
json(): Promise<any>
text(): Promise<string>