Skip to main content
Module

x/oak/helpers.ts>getQuery

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function getQuery
import { getQuery } from "https://deno.land/x/oak@v12.5.0/helpers.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>