Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pup/lib/common/restclient.ts>RestClient

Universal process manager built in Deno
Go to Latest
class RestClient
import { RestClient } from "https://deno.land/x/pup@1.0.0-rc.31/lib/common/restclient.ts";

A "standard" client for the Pup Rest API

Constructors

new
RestClient(baseUrl: string, token: string)

Properties

private
baseUrl: string
private
token: string

Methods

fetch(path: string, options: RequestInit): Promise<any>
get(path: string)
post(path: string, data: any)