import { type Opine } from "https://deno.land/x/oak_http_proxy@2.3.0/test/deps.ts";
const { IRouter } = Opine;
Properties
all: IRouterMatcher<this, "all">
Special-cased "all" method, applying the given route path
,
middleware, and callback to every HTTP method.
get: IRouterMatcher<this, "get">
post: IRouterMatcher<this, "post">
put: IRouterMatcher<this, "put">
delete: IRouterMatcher<this, "delete">
patch: IRouterMatcher<this, "patch">
options: IRouterMatcher<this, "options">
head: IRouterMatcher<this, "head">
checkout: IRouterMatcher<this>
connect: IRouterMatcher<this>
copy: IRouterMatcher<this>
lock: IRouterMatcher<this>
merge: IRouterMatcher<this>
mkactivity: IRouterMatcher<this>
mkcol: IRouterMatcher<this>
move: IRouterMatcher<this>
m-search: IRouterMatcher<this>
notify: IRouterMatcher<this>
propfind: IRouterMatcher<this>
proppatch: IRouterMatcher<this>
purge: IRouterMatcher<this>
report: IRouterMatcher<this>
search: IRouterMatcher<this>
subscribe: IRouterMatcher<this>
trace: IRouterMatcher<this>
unlock: IRouterMatcher<this>
unsubscribe: IRouterMatcher<this>
use: IRouterHandler<this> & IRouterMatcher<this>
Methods
route(prefix: PathParams): IRoute
Dispatch a req, res pair into the application. Starts pipeline processing.
If no callback is provided, then default error handlers will respond in the event of an error bubbling through the stack.
param(name: string, fn: RequestParamHandler): void