Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rutt/mod.ts>InternalRoute

🛣️ A tiny and fast http request router designed for use with deno and deno deploy
Latest
interface InternalRoute
import { type InternalRoute } from "https://deno.land/x/rutt@0.3.0/mod.ts";

The internal route object contains either a RegExp pattern or URLPattern which is matched against the incoming request URL. If a match is found for both the pattern and method the associated MatchHandler is called.

Type Parameters

optional
T = { }

Properties

pattern: RegExp | URLPattern
methods: Record<string, MatchHandler<T>>