import { createHandler } from "https://deno.land/x/composium@v0.0.6/mod.ts";
A curried function which takes a Context
class, mainHandlers
,
catchHandlers
and finallyHandlers
and returns in the end a Handler
function which can be passed to the function listen
. You can pass an initial
state
and it handles the request's method HEAD
appropriately by default.
createHandler(Ctx)(mainHandler)(catchHandler)(finallyHandler)