new Client
src/client.ts:35new Client(options?: ClientOptions)An HTTP client with a base URL, default headers, and helpers for each method.
import { Client } from 'detritus-rest';new Client(options?: ClientOptions)createRequest(
info: string | URL | RequestOptions | Request,
init?: RequestOptions,
): Requestdelete(info: string | URL | RequestOptions, init?: RequestOptions): Promise<Response>get(info: string | URL | RequestOptions, init?: RequestOptions): Promise<Response>head(info: string | URL | RequestOptions, init?: RequestOptions): Promise<Response>options(info: string | URL | RequestOptions, init?: RequestOptions): Promise<Response>patch(info: string | URL | RequestOptions, init?: RequestOptions): Promise<Response>post(info: string | URL | RequestOptions, init?: RequestOptions): Promise<Response>put(info: string | URL | RequestOptions, init?: RequestOptions): Promise<Response>request(
info: string | URL | RequestOptions | Request,
init?: RequestOptions,
): Promise<Response>