import { Response } from "https://deno.land/x/xdg@v10.6.0/vendor/types/deno.d.ts";
This Fetch API interface represents the response to a request.
Constructors
Properties
A simple getter used to expose a ReadableStream
of the body contents.
Stores a Boolean
that declares whether the body has been used in a
response yet.
Methods
Takes a Response
stream and reads it to completion. It returns a promise
that resolves with an ArrayBuffer
.
Takes a Response
stream and reads it to completion. It returns a promise
that resolves with a Blob
.
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.
Takes a Response
stream and reads it to completion. It returns a promise
that resolves with a USVString
(text).