Skip to main content
Module

x/ptereno/lib/models/HTTPClient.ts>default

An efficient and fully compliant Pterodactyl API wrapper.
Latest
class default
import { default } from "https://deno.land/x/ptereno@v1.0.1/lib/models/HTTPClient.ts";

Constructors

new
default(endpoint: string, api_token: string)

Creates a new HTTP client for handling requests.

Properties

private
endpoint: string

Methods

request<T = null>(
method: MethodType,
url: string,
options?: RequestOptions,
): Promise<T>

Makes an HTTP request to a specific endpoint.