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