Skip to main content
Module

x/composium/mod.ts>Context

Powered by functional composition and the URL Pattern API, composium has become the most flexible routing framework in the world.
Go to Latest
class Context
import { Context } from "https://deno.land/x/composium@v0.0.3/mod.ts";

The extendable Context is passed as only argument to your CtxHandlers. You can optionally extend the default Context object.

class Ctx extends Context {
  url = new URL(this.request.url);
  state: any = {};
}

Constructors

new
Context(request: Request, connInfo: ConnInfo)

Properties

error: Error | null
response: Response