x/oak/helpers.ts

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

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]