class OpenboxRouter
implements RouteHandlerApi
new
OpenboxRouter(unnamed 0: { endpoints: OpenboxEndpoints<Routes>; defaultErrorHandler?: OpenboxServerErrorHandler; defaultLimits?: OpenboxServerLimits; defaultCors?: OpenboxServerCors; })
readonly
endpoints: OpenboxEndpoints<Routes>
addRoute(path: string,method: OpenboxMethod,mediaType: string,cors: OpenboxServerCors | undefined,limits: OpenboxServerLimits | undefined,handler: OpenboxServerRouteHandler,errorHandler?: OpenboxServerErrorHandler,)
handle(request: Request,connInfo: Deno.ServeHandlerInfo,): Promise<Response | null>