import { WebApiClient } from "https://deno.land/x/kd_clients@v0.0.5/core/WebApiClient.ts";
Provides a base class for HTTP clients.
Properties
protected
readonly
headers: HeadersMethods
protected
requestDELETE(url: string): Promise<Response>Deletes a resource by performing an HTTP request using the DELETE method.
protected
requestGET(url: string): Promise<Response>Gets a resource by performing an HTTP request using the GET method.
protected
requestPATCH(url: string, body: string): Promise<Response>Updates a resource by performing an HTTP request using the PATCH method.
protected
requestPOST(url: string, body: string | object): Promise<Response>Creates a resource by performing an HTTP request using the POST method.
protected
requestPUT(url: string, body: string): Promise<Response>Modifies a resource by performing an HTTP request using the PUT method.