request(): Promise<Response>
Sends one request to a path and returns the response as is.
device: Device
Where the device is and how to log in.
optional
init: RequestInit
Extra request options, passed to fetch.
Promise<Response>
The response, whatever its status.
request<T>(): Promise<T>
Reads one resource from a device.
device: Device
Where the device is and how to log in.
optional
init: RequestInit
Extra request options, passed to fetch.
Promise<T>
The decoded document.