Skip to main content
Module

x/cav/mod.ts>ClientArg

A server framework for Deno
Go to Latest
interface ClientArg
import { type ClientArg } from "https://deno.land/x/cav@0.2.0-alpha.7/mod.ts";

Arguments for the Client functions.

Properties

optional
path: string

Request path. Joined with the client's baseUrl to form the final request URL.

optional
param: ParamRecord

Parameters to place into the path. Each :pathParam in the request path will be replaced with its parameter string in this record.

optional
socket: boolean

For opening web sockets. If true, a web socket will be 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.

optional
headers: HeadersInit

Extra headers to include when making the request.