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

x/superoak/test/deps.ts>helpers.getQuery

HTTP assertions for Oak made easy via SuperDeno. 🐿 🦕
Latest
function helpers.getQuery
import { helpers } from "https://deno.land/x/superoak@4.8.1/test/deps.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>