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

x/deno/cli/js/fetch.ts>Response

A modern runtime for JavaScript and TypeScript.
Go to Latest
class Response
implements [domTypes.Response]
import { Response } from "https://deno.land/x/deno@v0.28.0/cli/js/fetch.ts";

Constructors

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

Properties

readonly
body: Body
readonly
bodyUsed: boolean
headers: domTypes.Headers
readonly
ok: boolean
readonly
redirected: boolean
readonly
trailer: Promise<domTypes.Headers>
readonly
type: string

Methods

arrayBuffer(): Promise<ArrayBuffer>
blob(): Promise<domTypes.Blob>
clone(): domTypes.Response
formData(): Promise<domTypes.FormData>
json(): Promise<any>
text(): Promise<string>