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

x/hex/src/service/deps.ts>oak.Router.url

An ecosystem delivering practices, philosophy and portability.
Go to Latest
method oak.Router.url
import { oak } from "https://deno.land/x/hex@0.5.15/src/service/deps.ts";
const { Router } = oak;

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