import { Hono } from "https://deno.land/x/hono@v3.1.0/hono.ts";
Constructors
new
Hono(init?: Partial<Pick<Hono, "router" | "strict">>)Properties
private
errorHandler: ErrorHandlerprivate
notFoundHandler: NotFoundHandlerrequest: (input: Request | string | URL, requestInit?: RequestInit) => unknown
Methods
private
handleError(err: unknown, c: Context<E>)private
matchRoute(method: string, path: string)notFound(handler: NotFoundHandler<E>)
onError(handler: ErrorHandler<E>)
route<SubPath extends string, SubEnv extends Env, SubSchema>(path: SubPath, app: Hono<SubEnv, SubSchema>): Hono<E, RemoveBlankRecord<MergeSchemaPath<SubSchema, SubPath> | S>, BasePath>