import { Client } from "https://deno.land/x/darkflare@v7.2.6/client/mod.ts";
Methods
delete<T extends Type>(url: string, options: { data?: Data; headers?: Record<string, string>; type: T; })
fetch<T>(): Promise<{ data: (T extends "text" ? string : T extends "json" ? Record<string, any> : T extends "buffer" ? ArrayBuffer : ReadableStream<Uint8Array>) | undefined; error: unknown; code: number; ok: boolean; headers: Record<string, string>; }>
method: string,
url: string,
options: { headers?: Record<string, string>; data?: ; type: ; },
| "text"
| "json"
| "buffer"
| "stream"
get<T extends Type>(url: string, options: { headers?: Record<string, string>; type: T; })
head<T extends Type>(url: string, options: { headers?: Record<string, string>; })
patch<T extends Type>(url: string, options: { data?: Data; headers?: Record<string, string>; type: T; })
post<T extends Type>(url: string, options: { data?: Data; headers?: Record<string, string>; type: T; })
put<T extends Type>(url: string, options: { data?: Data; headers?: Record<string, string>; type: T; })