import { Client } from "https://deno.land/x/arubaos_cx@v0.0.7/mod.ts";
Contains methods for logging in/out and making authenticated requests. Recommended for multiple requests.
Example:
const client = new Client({ host: "10.20.30.40" });
await client.login();
const response1 = await client.fetch("/system");
const response2 = await client.fetch("/firmware");
...
await client.logout();
Constructors
new
Client(init: ClientInit)Methods
fetchOnce(path: string, init?: RequestInit): Promise<Response>
Performs a request inbetween automatic login/logout.