import { createHandler } from "https://deno.land/x/composium@v0.0.8/mod.ts";
A curried function which takes a Context
class, tryHandlers
,
catchHandlers
and finallyHandlers
and returns in the end a Handler
function which can be passed to listen
. It also handles the HTTP method
HEAD
appropriately and sets the X-Response-Time
header. You can pass
an initial state
object or disable the X-Response-Time
header optionally.
createHandler(Ctx)(tryHandler)(catchHandler)(finallyHandler)