x/oak/mod.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
interface RouterOptions
import { type RouterOptions } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/mod.ts?s=RouterOptions";

Properties

optional
methods: HTTPMethods[]
[src]

Override the default set of methods supported by the router.

optional
prefix: string
[src]

Only handle routes where the requested path starts with the prefix.

optional
routerPath: string
[src]

Override the request.url.pathname when matching middleware to run.

optional
sensitive: boolean
[src]

Determines if routes are matched in a case sensitive way. Defaults to false.

optional
strict: boolean
[src]

Determines if routes are matched strictly, where the trailing / is not optional. Defaults to false.