Module

x/hono/request.ts>HonoRequest#queries

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
method HonoRequest.prototype.queries
import { HonoRequest } from "https://dotland.deno.dev/x/hono@v4.2.2/request.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[]>