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

x/hono/hono.ts>Hono#on

Ultrafast web framework for Cloudflare Workers, Deno, and Bun. Fast, but not only fast.
Extremely Popular
Go to Latest
method Hono.prototype.on
import { Hono } from "https://deno.land/x/hono@v2.5.2/hono.ts";

Parameters

method: string
path: string
...handlers: Handler<P, E, S>[]