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

x/hono/mod.ts>HonoRequest#queries

Web Framework built on Web Standards
Extremely Popular
Go to Latest
method HonoRequest.prototype.queries
import { HonoRequest } from "https://deno.land/x/hono@v4.2.7/mod.ts";

.queries() can get multiple querystring parameter values, e.g. /search?tags=A&tags=B

Examples

Example 1

app.get('/search', (c) => {
  // tags will be string[]
  const tags = c.req.queries('tags')
})

Parameters

key: string

Returns

string[] | undefined

Returns

Record<string, string[]>