Skip to main content
Module

x/bcdeno_api/src/WebClient.ts>WebClient

🎲 Use BCDice-API from Deno easily
Latest
class WebClient
implements IWebClient
import { WebClient } from "https://deno.land/x/bcdeno_api@v1.1.1/src/WebClient.ts";

KyによるGET/POSTを送信するクライアント

Constructors

new
WebClient(prefixUrl: string | URL)

Properties

private
readonly
kyClient: ReturnType<ky.create>
readonly
prefixUrl: string | URL

Methods

get(url: string, options?: Options | undefined): Promise<any>
post(url: string, options?: Options | undefined): Promise<any>