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

x/oak/router.ts>Router#url

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
method Router.prototype.url
import { Router } from "https://deno.land/x/oak@v17.1.2/router.ts";

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>

Parameters

name: string
optional
params: P
optional
options: UrlOptions

Returns

string | undefined