Skip to main content
Module

x/cav/dom.ts>ClientArg

A server framework for Deno
Go to Latest
interface ClientArg
import { type ClientArg } from "https://deno.land/x/cav@0.2.3/dom.ts";

Arguments for the Client function.

Properties

optional
url: URL | string

Replaces the base URL provided during client construction, if any.

optional
path: string

Request path joined with the base URL to form the final request URL. When end-to-end type safety is activated, this should only be used if the final endpoint expects it.

optional
headers: HeadersInit

Extra headers to include when making the request.

optional
socket: boolean

For opening web sockets. If true, a web socket will be synchronously returned instead of a [Result, Response] pair.

optional
query: QueryRecord

Query string parameters to append to the request URL.

optional
body: unknown

Body to send with the request. If this is defined, the request method will be POST.