Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/jamf_school/deps/ky.ts

A simple, secure, correct, and modern Jamf School API wrapper. (Unofficial)
Latest
import * as jamfSchool from "https://deno.land/x/jamf_school@0.5.0/deps/ky.ts";

Interfaces

Normalized options passed to the fetch call and the beforeRequest hooks.

Options are the same as window.fetch, with some exceptions.

Returns a Response object with Body methods added for convenience. So you can, for example, call ky.get(input).json() directly without having to await the Response first. When called like that, an appropriate Accept header will be set depending on the body method used. Unlike the Body methods of window.Fetch; these will throw an HTTPError if the response status is not in the range of 200...299. Also, .json() will return an empty string if the response status is 204 instead of throwing a parse error due to an empty body.