Module

x/hono/request.ts>HonoRequest#param

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
method HonoRequest.prototype.param
import { HonoRequest } from "https://dotland.deno.dev/x/hono@v4.2.2/request.ts";

.req.param() gets the path parameters.

Examples

Example 1

const name = c.req.param('name')
// or all parameters at once
const { id, comment_id } = c.req.param()

Type Parameters

optional
P2 extends string = P