x/oak/router.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
method Router.prototype.url
import { Router } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.2/router.ts?p=prototype.url&s=Router";

Generate a URL pathname for a named route, interpolating the optional params provided. Also accepts an optional set of options.

Type Parameters

optional
P extends RouteParams<string> = RouteParams<string>
[src]

Parameters

name: string[src]
optional
params: P
[src]
optional
options: UrlOptions
[src]

Returns

string | undefined[src]