Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hono/hono.ts>Hono#use

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

Type Parameters

optional
Path extends string = string
optional
Data = unknown

Parameters

...middleware: Handler<Path, E, Data>[]

Returns

Hono<E, P, S>

Type Parameters

optional
Path extends string = string
optional
Data = unknown

Parameters

arg1: string
...middleware: Handler<Path, E, Data>[]

Returns

Hono<E, P, S>