import { Context } from "https://deno.land/x/composium@v0.1.2/context.ts";
An instance of the extendable Context
is passed as only argument to your
Middleware
s. You can optionally extend the default Context
object or pass
a State
type.
export class Ctx extends Context<{ start: number }> {
pathname = this.url.pathname;
}
Constructors
Properties
connInfo: Deno.ServeHandlerInfo
request: Request
response: Response
result: URLPatternResult
state: S
url: URL