Skip to main content
Module

x/oak/router.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
import * as oak from "https://deno.land/x/oak@v14.1.0/router.ts";

Classes

An internal class used to group together middleware when using multiple middlewares with a router.

An interface for registering middleware that will run when certain HTTP methods and paths are requested, as well as provides a way to parameterize parts of the requested path.

Interfaces

The internal abstraction of a route used by the oak Router.

Options which can be specified when calling the .allowedMethods() method on a Router instance.

The context passed router middleware.

The interface that Router middleware should adhere to.

Options which can be specified when creating a new instance of a Router.

Middleware that will be called by the router when handling a specific parameter, which the middleware will be called when a request matches the route parameter.

Type Aliases

A dynamic type which attempts to determine the route params based on matching the route string.