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

x/danet/src/deps.ts>getQuery

A Savory web framework for Deno heavily inspired by Nest
Go to Latest
function getQuery
import { getQuery } from "https://deno.land/x/danet@1.3.3/src/deps.ts";

Given a context, return the .request.url.searchParams as a Map of keys and values of the params.

Parameters

ctx: Context | RouterContext<string>
options: GetQueryOptionsAsMap

Returns

Map<string, string>

Given a context, return the .request.url.searchParams as a record object of keys and values of the params.

Parameters

ctx: Context | RouterContext<string>
optional
options: GetQueryOptionsBase

Returns

Record<string, string>