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

x/oak_http_proxy/test/deps.ts>Oak.helpers.getQuery

Proxy middleware for Deno Oak HTTP servers. 🐿 🦕
Latest
function Oak.helpers.getQuery
import { Oak } from "https://deno.land/x/oak_http_proxy@2.3.0/test/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>