import { RequestResult } from "https://deno.land/x/dax@0.31.0/mod.ts";
Result of making a request.
Constructors
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.
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.