import { Hono } from "https://deno.land/x/hono@v2.5.5/hono.ts";
Constructors
new
Hono(init?: Partial<Pick<Hono, "router" | "strict">>)Type Parameters
optional
E extends Partial<Environment> = EnvironmentProperties
private
errorHandler: ErrorHandler<E>private
notFoundHandler: NotFoundHandler<E>request: (input: Request | string, requestInit?: RequestInit) => unknown
Methods
private
dispatch()private
handleError(err: unknown, c: Context<string, E>)private
matchRoute(method: string, path: string)notFound(handler: NotFoundHandler<E>)
onError(handler: ErrorHandler<E>)