import { Tpy } from "https://deno.land/x/tpy@v1.0.0-RC/src/tpy.ts";
Makes a request to the API and creates possible errors according to the response.
Parameters
ctx: Context
The resource to request that will be concatenated with the API URL.
optional
cases: Cases = [UNSUPPORTED]HTTP method to use. Currently, the Pylon API only uses GET and POST.
optional
method: HTTPVerbs = [UNSUPPORTED]Other fetch parameters.
optional
requestInit: RequestInit = [UNSUPPORTED]Whether to parse out the body or not, default is true.