Module

x/oak/mod.ts>helpers.getQuery

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function helpers.getQuery
import { helpers } from "https://dotland.deno.dev/x/oak@v12.6.2/mod.ts";
const { getQuery } = helpers;

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>