import { type Stack } from "https://deno.land/x/cav@0.0.21/mod.ts";
Handler that routes requests to Rpcs (endpoints) or other Stacks (routers).
Type Parameters
optional
S extends RouterShape = RouterShapeCall Signatures
(req: RouterRequest<S>, connInfo: http.ConnInfo): Promise<Response>