import { type Body } from "https://deno.land/x/deno@v0.28.0/cli/js/dom_types.ts";
Properties
readonly
body: ReadableStream | nullA simple getter used to expose a ReadableStream
of the body contents.
Methods
Takes a Response
stream and reads it to completion. It returns a promise
that resolves with an ArrayBuffer
.
blob(): Promise<Blob>
Takes a Response
stream and reads it to completion. It returns a promise
that resolves with a Blob
.
formData(): Promise<FormData>
Takes a Response
stream and reads it to completion. It returns a promise
that resolves with a FormData
object.
Takes a Response
stream and reads it to completion. It returns a promise
that resolves with the result of parsing the body text as JSON.