Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class Response
extends Body
import { Response } from "https://deno.land/x/darkflare@v5.0.3/types/mod.d.ts";

Constructors

new
Response(bodyInit?: BodyInit | null, maybeInit?: ResponseInit | Response)

Properties

readonly
optional
cf: Object
readonly
headers: Headers
readonly
ok: boolean
readonly
redirected: boolean
readonly
status: number
readonly
statusText: string
readonly
url: string
readonly
webSocket: WebSocket | null

Static Methods

json(any: any, maybeInit?: ResponseInit | Response): Response
redirect(url: string, status?: number): Response