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.url
import { Router } from "https://dotland.deno.dev/x/oak@v17.1.2/router.ts";

Generate a URL pathname based on the provided path, interpolating the optional params provided. Also accepts an optional set of options.

Type Parameters

R extends string

Parameters

path: R
optional
params: RouteParams<R>
optional
options: UrlOptions

Returns

string