x/oak/mod.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function helpers.getQuery
import { helpers } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/mod.ts?s=helpers.getQuery";

const { getQuery } = helpers;

Given a context, return the .request.url.searchParams as a Map of keys and values of the params.

Parameters

options: GetQueryOptionsAsMap[src]

Returns

Map<string, string>[src]

Given a context, return the .request.url.searchParams as a record object of keys and values of the params.

Parameters

optional
options: GetQueryOptionsBase
[src]

Returns

Record<string, string>[src]