Skip to main content
Module

x/cav/rpc.ts>rpc

A server framework for Deno
Go to Latest
function rpc
import { rpc } from "https://deno.land/x/cav@0.0.8/rpc.ts";

Creates an Rpc handler that either resolves a Request into a Response or throws an error if something breaks or if the Rpc isn't supposed to respond to given request (it'll throw an HttpError with a 404 status code).

Type Parameters

optional
Resp = unknown
optional
Groups extends GroupsParser | null = null
optional
Context extends Ctx<unknown> | null = null
optional
Query extends QueryParser | null = null
optional
Message extends Parser | null = null
optional
Upgrade extends boolean | null = null