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

x/deno/cli/js/body.ts>Body

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

Constructors

new
Body(_bodySource: BodySource, contentType: string)

Properties

protected
_stream: domTypes.ReadableStream | null
readonly
body: domTypes.ReadableStream | null
readonly
bodyUsed: boolean

Methods

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