import { RequestResponse } from "https://dotland.deno.dev/x/dax@0.39.2/src/request.ts";
Response of making a request where the body can be read.
Constructors
Properties
Methods
Respose body as an array buffer.
Note: Returns undefined
when .noThrow(404)
and status code is 404.
Response body as a blog.
Note: Returns undefined
when .noThrow(404)
and status code is 404.
Response body as a form data.
Note: Returns undefined
when .noThrow(404)
and status code is 404.
Respose body as JSON.
Note: Returns undefined
when .noThrow(404)
and status code is 404.
Pipes the response body through the provided transform.
Pipes the response body to the provided writable stream.
Pipes the response body to a file.
Respose body as text.
Note: Returns undefined
when .noThrow(404)
and status code is 404.
Throws if the response doesn't have a 2xx code.
This might be useful if the request was built with .noThrow()
, but
otherwise this is called automatically for any non-2xx response codes.