Skip to main content
Module

x/cav/rpc.ts>Resolve

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

After an Rpc matches with an incoming request, the Resolve function is responsible for resolving the request data into a response to send back to the client. The value returned from the Resolver will be packed with the top-level response() function, i.e. it undergoes packing via packBody().

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