Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fw/service/deps.ts>oak.helpers.getQuery

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function oak.helpers.getQuery
import { oak } from "https://deno.land/x/hex@0.6.5/src/fw/service/deps.ts";
const { getQuery } = oak.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>