routup 6.0.0-beta.2 → 6.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bun.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { $ as AppOptions, $t as HandlerType, A as sendFormat, At as NodeHandler, B as setResponseHeaderAttachment, Bt as HandlerAfterListener, C as getRequestAcceptableContentTypes, Ct as isWebHandler, D as setResponseContentTypeByFileName, Dt as WebHandlerProvider, E as toResponse, Et as WebHandler, F as SendFileStats, Ft as Handler, G as EventStreamHandle, Gt as PathMatcher, H as appendResponseHeader, Ht as HandlerBeforeListener, I as sendFile, It as HandlerOptions, J as EventStreamListener, Jt as PathMatcherExecResult, K as EventStreamOptions, Kt as IPathMatcher, L as sendCreated, Lt as defineErrorHandler, M as SendFileContentOptions, Mt as defineCoreHandler, N as SendFileDisposition, Nt as CoreHandler, O as sendStream, Ot as fromNodeHandler, P as SendFileOptions, Pt as CoreHandlerOptions, Q as AppContext, Qt as HandlerSymbol, R as sendAccepted, Rt as ErrorHandler, S as getRequestAcceptableContentType, St as isHandlerOptions, T as isRequestCacheable, Tt as fromWebHandler, U as appendResponseHeaderDirective, Ut as HandlerErrorListener, V as setResponseHeaderInline, Vt as HandlerBaseOptions, W as serializeEventStreamMessage, Wt as isPath, X as ResponseCacheHeadersOptions, Xt as isError, Y as EventStreamMessage, Yt as PathMatcherOptions, Z as setResponseCacheHeaders, Zt as createError, _ as getRequestAcceptableLanguages, _t as isPluginError, a as SmartRouter, an as AppRequest, at as Route, b as getRequestAcceptableCharset, bt as matchHandlerMethod, c as RequestProtocolOptions, cn as NextFn, ct as LruCacheOptions, d as RequestIpOptions, dn as MethodNameLike, dt as Plugin, en as DispatcherEvent, et as AppOptionsInput, f as getRequestIP, fn as AppError, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as PluginAlreadyInstalledError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppEventCreateContext, it as ObjectLiteral, j as SendFileContent, jt as NodeMiddleware, k as sendRedirect, kt as fromNodeMiddleware, l as getRequestProtocol, ln as HeaderName, lt as ICache, m as getRequestHostName, mn as HTTPErrorInput, mt as PluginNotInstalledError, n as App, nn as IDispatcherEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as AppResponse, ot as RouteMatch, p as RequestHostNameOptions, pn as ErrorSymbol, pt as PluginInstallFn, q as createEventStream, qt as Path, r as buildRoutePathMatcher, rn as AppEvent, rt as IRouter, s as LinearRouter, sn as IAppEvent, st as LruCache, t as normalizeAppOptions, tn as IDispatcher, tt as IApp, u as useRequestNegotiator, un as MethodName, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginError, w as getRequestHeader, wt as isWebHandlerProvider, x as getRequestAcceptableCharsets, xt as isHandler, y as getRequestAcceptableEncodings, yt as PluginErrorCode, z as setResponseHeaderContentType, zt as ErrorHandlerOptions } from "./index-6qjxyFZh.mjs";
1
+ import { $ as AppOptions, $t as DispatcherEvent, A as sendFormat, At as NodeMiddleware, B as setResponseHeaderAttachment, Bt as HandlerBaseOptions, C as getRequestAcceptableContentTypes, Ct as isWebHandlerProvider, D as setResponseContentTypeByFileName, Dt as fromNodeHandler, E as toResponse, Et as WebHandlerProvider, F as SendFileStats, Ft as HandlerOptions, G as EventStreamHandle, Gt as IPathMatcher, H as appendResponseHeader, Ht as HandlerErrorListener, I as sendFile, It as defineErrorHandler, J as EventStreamListener, Jt as PathMatcherOptions, K as EventStreamOptions, Kt as Path, L as sendCreated, Lt as ErrorHandler, M as SendFileContentOptions, Mt as CoreHandler, N as SendFileDisposition, Nt as CoreHandlerOptions, O as sendStream, Ot as fromNodeMiddleware, P as SendFileOptions, Pt as Handler, Q as AppContext, Qt as HandlerType, R as sendAccepted, Rt as ErrorHandlerOptions, S as getRequestAcceptableContentType, St as isWebHandler, T as isRequestCacheable, Tt as WebHandler, U as appendResponseHeaderDirective, Ut as isPath, V as setResponseHeaderInline, Vt as HandlerBeforeListener, W as serializeEventStreamMessage, Wt as PathMatcher, X as ResponseCacheHeadersOptions, Xt as createError, Y as EventStreamMessage, Yt as isError, Z as setResponseCacheHeaders, Zt as HandlerSymbol, _ as getRequestAcceptableLanguages, _t as PluginError, a as SmartRouter, an as AppResponse, at as Route, b as getRequestAcceptableCharset, bt as isHandler, c as RequestProtocolOptions, cn as HeaderName, ct as LruCacheOptions, d as RequestIpOptions, dn as AppError, dt as Plugin, en as IDispatcher, et as AppOptionsInput, f as getRequestIP, fn as ErrorSymbol, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as isPluginError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppRequest, it as ObjectLiteral, j as SendFileContent, jt as defineCoreHandler, k as sendRedirect, kt as NodeHandler, l as getRequestProtocol, ln as MethodName, lt as ICache, m as getRequestHostName, mt as PluginNotInstalledError, n as App, nn as AppEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as IAppEvent, ot as RouteMatch, p as RequestHostNameOptions, pn as HTTPErrorInput, pt as PluginInstallFn, q as createEventStream, qt as PathMatcherExecResult, r as buildRoutePathMatcher, rn as AppEventCreateContext, rt as IRouter, s as LinearRouter, sn as NextFn, st as LruCache, t as normalizeAppOptions, tn as IDispatcherEvent, tt as IApp, u as useRequestNegotiator, un as MethodNameLike, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginErrorCode, w as getRequestHeader, wt as fromWebHandler, x as getRequestAcceptableCharsets, xt as isHandlerOptions, y as getRequestAcceptableEncodings, yt as matchHandlerMethod, z as setResponseHeaderContentType, zt as HandlerAfterListener } from "./index-colifb1o.mjs";
2
2
  import { Server, ServerOptions } from "srvx";
3
3
 
4
4
  //#region src/_entries/bun.d.ts
5
5
  declare function serve(app: IApp, options?: Omit<ServerOptions, 'fetch'>): Server;
6
6
  //#endregion
7
- export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginAlreadyInstalledError, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
7
+ export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
8
8
  //# sourceMappingURL=bun.d.mts.map
package/dist/bun.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-BfsqxIfL.mjs";
1
+ import { $ as setResponseHeaderContentType, A as isWebHandler, B as sendStream, C as getRequestAcceptableCharset, D as isHandler, E as matchHandlerMethod, F as defineCoreHandler, G as useRequestNegotiator, H as sendFormat, I as Handler, J as sendCreated, K as getRequestHeader, L as HandlerSymbol, M as fromNodeHandler, N as fromNodeMiddleware, O as isHandlerOptions, P as defineErrorHandler, Q as isError, R as HandlerType, S as getRequestAcceptableEncodings, T as isRequestCacheable, U as getRequestAcceptableContentType, V as sendRedirect, W as getRequestAcceptableContentTypes, X as toResponse, Y as sendAccepted, Z as createError, _ as getRequestHostName, a as LinearRouter, at as createEventStream, b as getRequestAcceptableLanguages, c as PluginNotInstalledError, ct as ErrorSymbol, d as isPluginError, dt as HeaderName, et as setResponseHeaderAttachment, f as PluginErrorCode, ft as MethodName, g as getRequestIP, h as getRequestProtocol, i as TrieRouter, it as appendResponseHeaderDirective, j as isWebHandlerProvider, k as fromWebHandler, l as PluginInstallError, lt as setResponseCacheHeaders, m as PathMatcher, n as normalizeAppOptions, nt as setResponseContentTypeByFileName, o as buildRoutePathMatcher, ot as serializeEventStreamMessage, p as isPath, pt as LruCache, q as sendFile, r as SmartRouter, rt as appendResponseHeader, s as isPlugin, st as AppError, t as App, tt as setResponseHeaderInline, u as PluginError, ut as AppEvent, v as matchRequestContentType, w as getRequestAcceptableCharsets, x as getRequestAcceptableEncoding, y as getRequestAcceptableLanguage, z as DispatcherEvent } from "./src-DE8cCC5t.mjs";
2
2
  import { serve as serve$1 } from "srvx/bun";
3
3
  //#region src/_entries/bun.ts
4
4
  function serve(app, options) {
@@ -8,6 +8,6 @@ function serve(app, options) {
8
8
  });
9
9
  }
10
10
  //#endregion
11
- export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginAlreadyInstalledError, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
11
+ export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
12
12
 
13
13
  //# sourceMappingURL=bun.mjs.map
@@ -1,8 +1,8 @@
1
- import { $ as AppOptions, $t as HandlerType, A as sendFormat, At as NodeHandler, B as setResponseHeaderAttachment, Bt as HandlerAfterListener, C as getRequestAcceptableContentTypes, Ct as isWebHandler, D as setResponseContentTypeByFileName, Dt as WebHandlerProvider, E as toResponse, Et as WebHandler, F as SendFileStats, Ft as Handler, G as EventStreamHandle, Gt as PathMatcher, H as appendResponseHeader, Ht as HandlerBeforeListener, I as sendFile, It as HandlerOptions, J as EventStreamListener, Jt as PathMatcherExecResult, K as EventStreamOptions, Kt as IPathMatcher, L as sendCreated, Lt as defineErrorHandler, M as SendFileContentOptions, Mt as defineCoreHandler, N as SendFileDisposition, Nt as CoreHandler, O as sendStream, Ot as fromNodeHandler, P as SendFileOptions, Pt as CoreHandlerOptions, Q as AppContext, Qt as HandlerSymbol, R as sendAccepted, Rt as ErrorHandler, S as getRequestAcceptableContentType, St as isHandlerOptions, T as isRequestCacheable, Tt as fromWebHandler, U as appendResponseHeaderDirective, Ut as HandlerErrorListener, V as setResponseHeaderInline, Vt as HandlerBaseOptions, W as serializeEventStreamMessage, Wt as isPath, X as ResponseCacheHeadersOptions, Xt as isError, Y as EventStreamMessage, Yt as PathMatcherOptions, Z as setResponseCacheHeaders, Zt as createError, _ as getRequestAcceptableLanguages, _t as isPluginError, a as SmartRouter, an as AppRequest, at as Route, b as getRequestAcceptableCharset, bt as matchHandlerMethod, c as RequestProtocolOptions, cn as NextFn, ct as LruCacheOptions, d as RequestIpOptions, dn as MethodNameLike, dt as Plugin, en as DispatcherEvent, et as AppOptionsInput, f as getRequestIP, fn as AppError, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as PluginAlreadyInstalledError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppEventCreateContext, it as ObjectLiteral, j as SendFileContent, jt as NodeMiddleware, k as sendRedirect, kt as fromNodeMiddleware, l as getRequestProtocol, ln as HeaderName, lt as ICache, m as getRequestHostName, mn as HTTPErrorInput, mt as PluginNotInstalledError, n as App, nn as IDispatcherEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as AppResponse, ot as RouteMatch, p as RequestHostNameOptions, pn as ErrorSymbol, pt as PluginInstallFn, q as createEventStream, qt as Path, r as buildRoutePathMatcher, rn as AppEvent, rt as IRouter, s as LinearRouter, sn as IAppEvent, st as LruCache, t as normalizeAppOptions, tn as IDispatcher, tt as IApp, u as useRequestNegotiator, un as MethodName, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginError, w as getRequestHeader, wt as isWebHandlerProvider, x as getRequestAcceptableCharsets, xt as isHandler, y as getRequestAcceptableEncodings, yt as PluginErrorCode, z as setResponseHeaderContentType, zt as ErrorHandlerOptions } from "./index-6qjxyFZh.mjs";
1
+ import { $ as AppOptions, $t as DispatcherEvent, A as sendFormat, At as NodeMiddleware, B as setResponseHeaderAttachment, Bt as HandlerBaseOptions, C as getRequestAcceptableContentTypes, Ct as isWebHandlerProvider, D as setResponseContentTypeByFileName, Dt as fromNodeHandler, E as toResponse, Et as WebHandlerProvider, F as SendFileStats, Ft as HandlerOptions, G as EventStreamHandle, Gt as IPathMatcher, H as appendResponseHeader, Ht as HandlerErrorListener, I as sendFile, It as defineErrorHandler, J as EventStreamListener, Jt as PathMatcherOptions, K as EventStreamOptions, Kt as Path, L as sendCreated, Lt as ErrorHandler, M as SendFileContentOptions, Mt as CoreHandler, N as SendFileDisposition, Nt as CoreHandlerOptions, O as sendStream, Ot as fromNodeMiddleware, P as SendFileOptions, Pt as Handler, Q as AppContext, Qt as HandlerType, R as sendAccepted, Rt as ErrorHandlerOptions, S as getRequestAcceptableContentType, St as isWebHandler, T as isRequestCacheable, Tt as WebHandler, U as appendResponseHeaderDirective, Ut as isPath, V as setResponseHeaderInline, Vt as HandlerBeforeListener, W as serializeEventStreamMessage, Wt as PathMatcher, X as ResponseCacheHeadersOptions, Xt as createError, Y as EventStreamMessage, Yt as isError, Z as setResponseCacheHeaders, Zt as HandlerSymbol, _ as getRequestAcceptableLanguages, _t as PluginError, a as SmartRouter, an as AppResponse, at as Route, b as getRequestAcceptableCharset, bt as isHandler, c as RequestProtocolOptions, cn as HeaderName, ct as LruCacheOptions, d as RequestIpOptions, dn as AppError, dt as Plugin, en as IDispatcher, et as AppOptionsInput, f as getRequestIP, fn as ErrorSymbol, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as isPluginError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppRequest, it as ObjectLiteral, j as SendFileContent, jt as defineCoreHandler, k as sendRedirect, kt as NodeHandler, l as getRequestProtocol, ln as MethodName, lt as ICache, m as getRequestHostName, mt as PluginNotInstalledError, n as App, nn as AppEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as IAppEvent, ot as RouteMatch, p as RequestHostNameOptions, pn as HTTPErrorInput, pt as PluginInstallFn, q as createEventStream, qt as PathMatcherExecResult, r as buildRoutePathMatcher, rn as AppEventCreateContext, rt as IRouter, s as LinearRouter, sn as NextFn, st as LruCache, t as normalizeAppOptions, tn as IDispatcherEvent, tt as IApp, u as useRequestNegotiator, un as MethodNameLike, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginErrorCode, w as getRequestHeader, wt as fromWebHandler, x as getRequestAcceptableCharsets, xt as isHandlerOptions, y as getRequestAcceptableEncodings, yt as matchHandlerMethod, z as setResponseHeaderContentType, zt as HandlerAfterListener } from "./index-colifb1o.mjs";
2
2
  import { Server, ServerOptions } from "srvx";
3
3
 
4
4
  //#region src/_entries/cloudflare.d.ts
5
5
  declare function serve(app: IApp, options?: Omit<ServerOptions, 'fetch'>): Server;
6
6
  //#endregion
7
- export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginAlreadyInstalledError, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
7
+ export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
8
8
  //# sourceMappingURL=cloudflare.d.mts.map
@@ -1,4 +1,4 @@
1
- import { $ as isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-BfsqxIfL.mjs";
1
+ import { $ as setResponseHeaderContentType, A as isWebHandler, B as sendStream, C as getRequestAcceptableCharset, D as isHandler, E as matchHandlerMethod, F as defineCoreHandler, G as useRequestNegotiator, H as sendFormat, I as Handler, J as sendCreated, K as getRequestHeader, L as HandlerSymbol, M as fromNodeHandler, N as fromNodeMiddleware, O as isHandlerOptions, P as defineErrorHandler, Q as isError, R as HandlerType, S as getRequestAcceptableEncodings, T as isRequestCacheable, U as getRequestAcceptableContentType, V as sendRedirect, W as getRequestAcceptableContentTypes, X as toResponse, Y as sendAccepted, Z as createError, _ as getRequestHostName, a as LinearRouter, at as createEventStream, b as getRequestAcceptableLanguages, c as PluginNotInstalledError, ct as ErrorSymbol, d as isPluginError, dt as HeaderName, et as setResponseHeaderAttachment, f as PluginErrorCode, ft as MethodName, g as getRequestIP, h as getRequestProtocol, i as TrieRouter, it as appendResponseHeaderDirective, j as isWebHandlerProvider, k as fromWebHandler, l as PluginInstallError, lt as setResponseCacheHeaders, m as PathMatcher, n as normalizeAppOptions, nt as setResponseContentTypeByFileName, o as buildRoutePathMatcher, ot as serializeEventStreamMessage, p as isPath, pt as LruCache, q as sendFile, r as SmartRouter, rt as appendResponseHeader, s as isPlugin, st as AppError, t as App, tt as setResponseHeaderInline, u as PluginError, ut as AppEvent, v as matchRequestContentType, w as getRequestAcceptableCharsets, x as getRequestAcceptableEncoding, y as getRequestAcceptableLanguage, z as DispatcherEvent } from "./src-DE8cCC5t.mjs";
2
2
  import { serve as serve$1 } from "srvx/cloudflare";
3
3
  //#region src/_entries/cloudflare.ts
4
4
  function serve(app, options) {
@@ -8,6 +8,6 @@ function serve(app, options) {
8
8
  });
9
9
  }
10
10
  //#endregion
11
- export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginAlreadyInstalledError, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
11
+ export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
12
12
 
13
13
  //# sourceMappingURL=cloudflare.mjs.map
package/dist/deno.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { $ as AppOptions, $t as HandlerType, A as sendFormat, At as NodeHandler, B as setResponseHeaderAttachment, Bt as HandlerAfterListener, C as getRequestAcceptableContentTypes, Ct as isWebHandler, D as setResponseContentTypeByFileName, Dt as WebHandlerProvider, E as toResponse, Et as WebHandler, F as SendFileStats, Ft as Handler, G as EventStreamHandle, Gt as PathMatcher, H as appendResponseHeader, Ht as HandlerBeforeListener, I as sendFile, It as HandlerOptions, J as EventStreamListener, Jt as PathMatcherExecResult, K as EventStreamOptions, Kt as IPathMatcher, L as sendCreated, Lt as defineErrorHandler, M as SendFileContentOptions, Mt as defineCoreHandler, N as SendFileDisposition, Nt as CoreHandler, O as sendStream, Ot as fromNodeHandler, P as SendFileOptions, Pt as CoreHandlerOptions, Q as AppContext, Qt as HandlerSymbol, R as sendAccepted, Rt as ErrorHandler, S as getRequestAcceptableContentType, St as isHandlerOptions, T as isRequestCacheable, Tt as fromWebHandler, U as appendResponseHeaderDirective, Ut as HandlerErrorListener, V as setResponseHeaderInline, Vt as HandlerBaseOptions, W as serializeEventStreamMessage, Wt as isPath, X as ResponseCacheHeadersOptions, Xt as isError, Y as EventStreamMessage, Yt as PathMatcherOptions, Z as setResponseCacheHeaders, Zt as createError, _ as getRequestAcceptableLanguages, _t as isPluginError, a as SmartRouter, an as AppRequest, at as Route, b as getRequestAcceptableCharset, bt as matchHandlerMethod, c as RequestProtocolOptions, cn as NextFn, ct as LruCacheOptions, d as RequestIpOptions, dn as MethodNameLike, dt as Plugin, en as DispatcherEvent, et as AppOptionsInput, f as getRequestIP, fn as AppError, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as PluginAlreadyInstalledError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppEventCreateContext, it as ObjectLiteral, j as SendFileContent, jt as NodeMiddleware, k as sendRedirect, kt as fromNodeMiddleware, l as getRequestProtocol, ln as HeaderName, lt as ICache, m as getRequestHostName, mn as HTTPErrorInput, mt as PluginNotInstalledError, n as App, nn as IDispatcherEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as AppResponse, ot as RouteMatch, p as RequestHostNameOptions, pn as ErrorSymbol, pt as PluginInstallFn, q as createEventStream, qt as Path, r as buildRoutePathMatcher, rn as AppEvent, rt as IRouter, s as LinearRouter, sn as IAppEvent, st as LruCache, t as normalizeAppOptions, tn as IDispatcher, tt as IApp, u as useRequestNegotiator, un as MethodName, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginError, w as getRequestHeader, wt as isWebHandlerProvider, x as getRequestAcceptableCharsets, xt as isHandler, y as getRequestAcceptableEncodings, yt as PluginErrorCode, z as setResponseHeaderContentType, zt as ErrorHandlerOptions } from "./index-6qjxyFZh.mjs";
1
+ import { $ as AppOptions, $t as DispatcherEvent, A as sendFormat, At as NodeMiddleware, B as setResponseHeaderAttachment, Bt as HandlerBaseOptions, C as getRequestAcceptableContentTypes, Ct as isWebHandlerProvider, D as setResponseContentTypeByFileName, Dt as fromNodeHandler, E as toResponse, Et as WebHandlerProvider, F as SendFileStats, Ft as HandlerOptions, G as EventStreamHandle, Gt as IPathMatcher, H as appendResponseHeader, Ht as HandlerErrorListener, I as sendFile, It as defineErrorHandler, J as EventStreamListener, Jt as PathMatcherOptions, K as EventStreamOptions, Kt as Path, L as sendCreated, Lt as ErrorHandler, M as SendFileContentOptions, Mt as CoreHandler, N as SendFileDisposition, Nt as CoreHandlerOptions, O as sendStream, Ot as fromNodeMiddleware, P as SendFileOptions, Pt as Handler, Q as AppContext, Qt as HandlerType, R as sendAccepted, Rt as ErrorHandlerOptions, S as getRequestAcceptableContentType, St as isWebHandler, T as isRequestCacheable, Tt as WebHandler, U as appendResponseHeaderDirective, Ut as isPath, V as setResponseHeaderInline, Vt as HandlerBeforeListener, W as serializeEventStreamMessage, Wt as PathMatcher, X as ResponseCacheHeadersOptions, Xt as createError, Y as EventStreamMessage, Yt as isError, Z as setResponseCacheHeaders, Zt as HandlerSymbol, _ as getRequestAcceptableLanguages, _t as PluginError, a as SmartRouter, an as AppResponse, at as Route, b as getRequestAcceptableCharset, bt as isHandler, c as RequestProtocolOptions, cn as HeaderName, ct as LruCacheOptions, d as RequestIpOptions, dn as AppError, dt as Plugin, en as IDispatcher, et as AppOptionsInput, f as getRequestIP, fn as ErrorSymbol, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as isPluginError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppRequest, it as ObjectLiteral, j as SendFileContent, jt as defineCoreHandler, k as sendRedirect, kt as NodeHandler, l as getRequestProtocol, ln as MethodName, lt as ICache, m as getRequestHostName, mt as PluginNotInstalledError, n as App, nn as AppEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as IAppEvent, ot as RouteMatch, p as RequestHostNameOptions, pn as HTTPErrorInput, pt as PluginInstallFn, q as createEventStream, qt as PathMatcherExecResult, r as buildRoutePathMatcher, rn as AppEventCreateContext, rt as IRouter, s as LinearRouter, sn as NextFn, st as LruCache, t as normalizeAppOptions, tn as IDispatcherEvent, tt as IApp, u as useRequestNegotiator, un as MethodNameLike, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginErrorCode, w as getRequestHeader, wt as fromWebHandler, x as getRequestAcceptableCharsets, xt as isHandlerOptions, y as getRequestAcceptableEncodings, yt as matchHandlerMethod, z as setResponseHeaderContentType, zt as HandlerAfterListener } from "./index-colifb1o.mjs";
2
2
  import { Server, ServerOptions } from "srvx";
3
3
 
4
4
  //#region src/_entries/deno.d.ts
5
5
  declare function serve(app: IApp, options?: Omit<ServerOptions, 'fetch'>): Server;
6
6
  //#endregion
7
- export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginAlreadyInstalledError, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
7
+ export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
8
8
  //# sourceMappingURL=deno.d.mts.map
package/dist/deno.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-BfsqxIfL.mjs";
1
+ import { $ as setResponseHeaderContentType, A as isWebHandler, B as sendStream, C as getRequestAcceptableCharset, D as isHandler, E as matchHandlerMethod, F as defineCoreHandler, G as useRequestNegotiator, H as sendFormat, I as Handler, J as sendCreated, K as getRequestHeader, L as HandlerSymbol, M as fromNodeHandler, N as fromNodeMiddleware, O as isHandlerOptions, P as defineErrorHandler, Q as isError, R as HandlerType, S as getRequestAcceptableEncodings, T as isRequestCacheable, U as getRequestAcceptableContentType, V as sendRedirect, W as getRequestAcceptableContentTypes, X as toResponse, Y as sendAccepted, Z as createError, _ as getRequestHostName, a as LinearRouter, at as createEventStream, b as getRequestAcceptableLanguages, c as PluginNotInstalledError, ct as ErrorSymbol, d as isPluginError, dt as HeaderName, et as setResponseHeaderAttachment, f as PluginErrorCode, ft as MethodName, g as getRequestIP, h as getRequestProtocol, i as TrieRouter, it as appendResponseHeaderDirective, j as isWebHandlerProvider, k as fromWebHandler, l as PluginInstallError, lt as setResponseCacheHeaders, m as PathMatcher, n as normalizeAppOptions, nt as setResponseContentTypeByFileName, o as buildRoutePathMatcher, ot as serializeEventStreamMessage, p as isPath, pt as LruCache, q as sendFile, r as SmartRouter, rt as appendResponseHeader, s as isPlugin, st as AppError, t as App, tt as setResponseHeaderInline, u as PluginError, ut as AppEvent, v as matchRequestContentType, w as getRequestAcceptableCharsets, x as getRequestAcceptableEncoding, y as getRequestAcceptableLanguage, z as DispatcherEvent } from "./src-DE8cCC5t.mjs";
2
2
  import { serve as serve$1 } from "srvx/deno";
3
3
  //#region src/_entries/deno.ts
4
4
  function serve(app, options) {
@@ -8,6 +8,6 @@ function serve(app, options) {
8
8
  });
9
9
  }
10
10
  //#endregion
11
- export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginAlreadyInstalledError, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
11
+ export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
12
12
 
13
13
  //# sourceMappingURL=deno.mjs.map
@@ -1,8 +1,8 @@
1
- import { $ as AppOptions, $t as HandlerType, A as sendFormat, At as NodeHandler, B as setResponseHeaderAttachment, Bt as HandlerAfterListener, C as getRequestAcceptableContentTypes, Ct as isWebHandler, D as setResponseContentTypeByFileName, Dt as WebHandlerProvider, E as toResponse, Et as WebHandler, F as SendFileStats, Ft as Handler, G as EventStreamHandle, Gt as PathMatcher, H as appendResponseHeader, Ht as HandlerBeforeListener, I as sendFile, It as HandlerOptions, J as EventStreamListener, Jt as PathMatcherExecResult, K as EventStreamOptions, Kt as IPathMatcher, L as sendCreated, Lt as defineErrorHandler, M as SendFileContentOptions, Mt as defineCoreHandler, N as SendFileDisposition, Nt as CoreHandler, O as sendStream, Ot as fromNodeHandler, P as SendFileOptions, Pt as CoreHandlerOptions, Q as AppContext, Qt as HandlerSymbol, R as sendAccepted, Rt as ErrorHandler, S as getRequestAcceptableContentType, St as isHandlerOptions, T as isRequestCacheable, Tt as fromWebHandler, U as appendResponseHeaderDirective, Ut as HandlerErrorListener, V as setResponseHeaderInline, Vt as HandlerBaseOptions, W as serializeEventStreamMessage, Wt as isPath, X as ResponseCacheHeadersOptions, Xt as isError, Y as EventStreamMessage, Yt as PathMatcherOptions, Z as setResponseCacheHeaders, Zt as createError, _ as getRequestAcceptableLanguages, _t as isPluginError, a as SmartRouter, an as AppRequest, at as Route, b as getRequestAcceptableCharset, bt as matchHandlerMethod, c as RequestProtocolOptions, cn as NextFn, ct as LruCacheOptions, d as RequestIpOptions, dn as MethodNameLike, dt as Plugin, en as DispatcherEvent, et as AppOptionsInput, f as getRequestIP, fn as AppError, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as PluginAlreadyInstalledError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppEventCreateContext, it as ObjectLiteral, j as SendFileContent, jt as NodeMiddleware, k as sendRedirect, kt as fromNodeMiddleware, l as getRequestProtocol, ln as HeaderName, lt as ICache, m as getRequestHostName, mn as HTTPErrorInput, mt as PluginNotInstalledError, n as App, nn as IDispatcherEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as AppResponse, ot as RouteMatch, p as RequestHostNameOptions, pn as ErrorSymbol, pt as PluginInstallFn, q as createEventStream, qt as Path, r as buildRoutePathMatcher, rn as AppEvent, rt as IRouter, s as LinearRouter, sn as IAppEvent, st as LruCache, t as normalizeAppOptions, tn as IDispatcher, tt as IApp, u as useRequestNegotiator, un as MethodName, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginError, w as getRequestHeader, wt as isWebHandlerProvider, x as getRequestAcceptableCharsets, xt as isHandler, y as getRequestAcceptableEncodings, yt as PluginErrorCode, z as setResponseHeaderContentType, zt as ErrorHandlerOptions } from "./index-6qjxyFZh.mjs";
1
+ import { $ as AppOptions, $t as DispatcherEvent, A as sendFormat, At as NodeMiddleware, B as setResponseHeaderAttachment, Bt as HandlerBaseOptions, C as getRequestAcceptableContentTypes, Ct as isWebHandlerProvider, D as setResponseContentTypeByFileName, Dt as fromNodeHandler, E as toResponse, Et as WebHandlerProvider, F as SendFileStats, Ft as HandlerOptions, G as EventStreamHandle, Gt as IPathMatcher, H as appendResponseHeader, Ht as HandlerErrorListener, I as sendFile, It as defineErrorHandler, J as EventStreamListener, Jt as PathMatcherOptions, K as EventStreamOptions, Kt as Path, L as sendCreated, Lt as ErrorHandler, M as SendFileContentOptions, Mt as CoreHandler, N as SendFileDisposition, Nt as CoreHandlerOptions, O as sendStream, Ot as fromNodeMiddleware, P as SendFileOptions, Pt as Handler, Q as AppContext, Qt as HandlerType, R as sendAccepted, Rt as ErrorHandlerOptions, S as getRequestAcceptableContentType, St as isWebHandler, T as isRequestCacheable, Tt as WebHandler, U as appendResponseHeaderDirective, Ut as isPath, V as setResponseHeaderInline, Vt as HandlerBeforeListener, W as serializeEventStreamMessage, Wt as PathMatcher, X as ResponseCacheHeadersOptions, Xt as createError, Y as EventStreamMessage, Yt as isError, Z as setResponseCacheHeaders, Zt as HandlerSymbol, _ as getRequestAcceptableLanguages, _t as PluginError, a as SmartRouter, an as AppResponse, at as Route, b as getRequestAcceptableCharset, bt as isHandler, c as RequestProtocolOptions, cn as HeaderName, ct as LruCacheOptions, d as RequestIpOptions, dn as AppError, dt as Plugin, en as IDispatcher, et as AppOptionsInput, f as getRequestIP, fn as ErrorSymbol, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as isPluginError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppRequest, it as ObjectLiteral, j as SendFileContent, jt as defineCoreHandler, k as sendRedirect, kt as NodeHandler, l as getRequestProtocol, ln as MethodName, lt as ICache, m as getRequestHostName, mt as PluginNotInstalledError, n as App, nn as AppEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as IAppEvent, ot as RouteMatch, p as RequestHostNameOptions, pn as HTTPErrorInput, pt as PluginInstallFn, q as createEventStream, qt as PathMatcherExecResult, r as buildRoutePathMatcher, rn as AppEventCreateContext, rt as IRouter, s as LinearRouter, sn as NextFn, st as LruCache, t as normalizeAppOptions, tn as IDispatcherEvent, tt as IApp, u as useRequestNegotiator, un as MethodNameLike, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginErrorCode, w as getRequestHeader, wt as fromWebHandler, x as getRequestAcceptableCharsets, xt as isHandlerOptions, y as getRequestAcceptableEncodings, yt as matchHandlerMethod, z as setResponseHeaderContentType, zt as HandlerAfterListener } from "./index-colifb1o.mjs";
2
2
  import { Server, ServerOptions } from "srvx";
3
3
 
4
4
  //#region src/_entries/generic.d.ts
5
5
  declare function serve(app: IApp, options?: Omit<ServerOptions, 'fetch'>): Server;
6
6
  //#endregion
7
- export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginAlreadyInstalledError, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
7
+ export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
8
8
  //# sourceMappingURL=generic.d.mts.map
package/dist/generic.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-BfsqxIfL.mjs";
1
+ import { $ as setResponseHeaderContentType, A as isWebHandler, B as sendStream, C as getRequestAcceptableCharset, D as isHandler, E as matchHandlerMethod, F as defineCoreHandler, G as useRequestNegotiator, H as sendFormat, I as Handler, J as sendCreated, K as getRequestHeader, L as HandlerSymbol, M as fromNodeHandler, N as fromNodeMiddleware, O as isHandlerOptions, P as defineErrorHandler, Q as isError, R as HandlerType, S as getRequestAcceptableEncodings, T as isRequestCacheable, U as getRequestAcceptableContentType, V as sendRedirect, W as getRequestAcceptableContentTypes, X as toResponse, Y as sendAccepted, Z as createError, _ as getRequestHostName, a as LinearRouter, at as createEventStream, b as getRequestAcceptableLanguages, c as PluginNotInstalledError, ct as ErrorSymbol, d as isPluginError, dt as HeaderName, et as setResponseHeaderAttachment, f as PluginErrorCode, ft as MethodName, g as getRequestIP, h as getRequestProtocol, i as TrieRouter, it as appendResponseHeaderDirective, j as isWebHandlerProvider, k as fromWebHandler, l as PluginInstallError, lt as setResponseCacheHeaders, m as PathMatcher, n as normalizeAppOptions, nt as setResponseContentTypeByFileName, o as buildRoutePathMatcher, ot as serializeEventStreamMessage, p as isPath, pt as LruCache, q as sendFile, r as SmartRouter, rt as appendResponseHeader, s as isPlugin, st as AppError, t as App, tt as setResponseHeaderInline, u as PluginError, ut as AppEvent, v as matchRequestContentType, w as getRequestAcceptableCharsets, x as getRequestAcceptableEncoding, y as getRequestAcceptableLanguage, z as DispatcherEvent } from "./src-DE8cCC5t.mjs";
2
2
  import { serve as serve$1 } from "srvx/generic";
3
3
  //#region src/_entries/generic.ts
4
4
  function serve(app, options) {
@@ -8,6 +8,6 @@ function serve(app, options) {
8
8
  });
9
9
  }
10
10
  //#endregion
11
- export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginAlreadyInstalledError, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
11
+ export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
12
12
 
13
13
  //# sourceMappingURL=generic.mjs.map
@@ -650,7 +650,6 @@ declare function matchHandlerMethod(handlerMethod: MethodName | undefined, reque
650
650
  declare const PluginErrorCode: {
651
651
  readonly PLUGIN: "PLUGIN";
652
652
  readonly NOT_INSTALLED: "PLUGIN_NOT_INSTALLED";
653
- readonly ALREADY_INSTALLED: "PLUGIN_ALREADY_INSTALLED";
654
653
  readonly INSTALL: "PLUGIN_INSTALL";
655
654
  };
656
655
  type PluginErrorCode = typeof PluginErrorCode[keyof typeof PluginErrorCode];
@@ -663,12 +662,6 @@ declare class PluginError extends AppError {
663
662
  //#region src/plugin/error/is.d.ts
664
663
  declare function isPluginError(input: unknown): input is PluginError;
665
664
  //#endregion
666
- //#region src/plugin/error/sub/already-installed.d.ts
667
- declare class PluginAlreadyInstalledError extends PluginError {
668
- readonly pluginName: string;
669
- constructor(pluginName: string);
670
- }
671
- //#endregion
672
665
  //#region src/plugin/error/sub/install.d.ts
673
666
  declare class PluginInstallError extends PluginError {
674
667
  readonly pluginName: string;
@@ -693,6 +686,37 @@ type Plugin = {
693
686
  * The version of the plugin (semver).
694
687
  */
695
688
  version?: string;
689
+ /**
690
+ * Opt in to "install at most once per App, regardless of mount
691
+ * path". Use for cross-cutting plugins (CORS, body parsers, auth)
692
+ * where multiple instances would be a bug.
693
+ *
694
+ * Default `false` — by default `app.use(plugin)` is permissive and
695
+ * appends; the same plugin may even be mounted at the same path
696
+ * more than once (each install runs `install()` again and stacks).
697
+ *
698
+ * When `true`:
699
+ * - The install is a no-op if any prior mount of the same name
700
+ * exists. Routes from this attempt are not registered, and no
701
+ * error is thrown.
702
+ * - The first successful install with `singleton: true` records
703
+ * a sticky claim — every subsequent install of that name is
704
+ * silently skipped for the lifetime of the App.
705
+ * - The claim is *not* set retroactively. If the first install
706
+ * of the name had no flag, a later `singleton: true` install
707
+ * just no-ops without claiming.
708
+ */
709
+ singleton?: boolean;
710
+ /**
711
+ * Opt in to "install at most once per `(name, mount path)` pair".
712
+ * Useful for idempotent installs at a specific prefix without
713
+ * locking the name globally.
714
+ *
715
+ * Default `false`. When `true`, a second install of the same
716
+ * plugin at the same canonical mount path is silently skipped;
717
+ * installs at other paths proceed normally.
718
+ */
719
+ singletonByPath?: boolean;
696
720
  /**
697
721
  * The installation function called on registration.
698
722
  */
@@ -1085,16 +1109,70 @@ interface IApp extends IDispatcher {
1085
1109
  */
1086
1110
  setRouter(router: IRouter<Handler>): void;
1087
1111
  /**
1088
- * Check if a plugin with the given name is installed on this
1089
- * App. Plugins installed on a mounted child are merged into the
1090
- * parent at mount time, so this reflects the flattened view.
1112
+ * Canonical route list registered on this App, in registration
1113
+ * order. Read by `app.use(child)` at mount time so the parent can
1114
+ * re-register each entry under the composed mount path.
1115
+ *
1116
+ * Returned as `readonly` — callers must not mutate; route
1117
+ * registration goes through `use` / `get` / `post` / etc.
1118
+ */
1119
+ readonly routes: readonly Route<Handler>[];
1120
+ /**
1121
+ * Installed-plugin registry, keyed by plugin name → canonical
1122
+ * mount path (`'/'` for root installs) → installed version.
1123
+ *
1124
+ * Read by `app.use(child)` at mount time so the parent can merge
1125
+ * the child's per-path registry into its own under the composed
1126
+ * mount path. Returned as nested `ReadonlyMap` — callers must not
1127
+ * mutate; install through `app.use(plugin)`.
1128
+ */
1129
+ readonly plugins: ReadonlyMap<string, ReadonlyMap<string, string | undefined>>;
1130
+ /**
1131
+ * Names of plugins installed with `singleton: true`. Once a name
1132
+ * appears here it stays for the lifetime of the App: every
1133
+ * subsequent install of that name is a silent no-op. Read by
1134
+ * `app.use(child)` at mount time so a child's sticky claim
1135
+ * propagates to the parent (subject to `flatten()`'s
1136
+ * first-install-wins guard).
1137
+ *
1138
+ * Returned as `ReadonlySet` — callers must not mutate.
1139
+ */
1140
+ readonly pluginSingletons: ReadonlySet<string>;
1141
+ /**
1142
+ * Check if a plugin with the given name is installed on this App
1143
+ * at *any* mount path. Plugins installed on a mounted child are
1144
+ * merged into the parent at mount time, so this reflects the
1145
+ * flattened view.
1091
1146
  */
1092
1147
  hasPlugin(name: string): boolean;
1148
+ /**
1149
+ * Check if a plugin with the given name is installed at the given
1150
+ * install-time `path`. `path` is interpreted relative to this App
1151
+ * — the same way `app.use(path, plugin)` takes it. Omit `path` to
1152
+ * check the root install.
1153
+ */
1154
+ hasPluginAt(name: string, path?: Path): boolean;
1093
1155
  /**
1094
1156
  * Get the version of an installed plugin by name, or `undefined`
1095
- * if the plugin is not installed.
1157
+ * if the plugin is not installed. When the plugin is mounted at
1158
+ * several paths, returns the version of an arbitrary mount —
1159
+ * typical usage installs the same plugin object at every mount,
1160
+ * so the version is identical. Use `getPluginVersionAt` to read
1161
+ * the version of a specific mount.
1096
1162
  */
1097
1163
  getPluginVersion(name: string): string | undefined;
1164
+ /**
1165
+ * Get the version of a plugin installed at the given install-time
1166
+ * `path`, or `undefined` when no install matches. `path` is
1167
+ * interpreted relative to this App; omit it to read the root
1168
+ * install.
1169
+ */
1170
+ getPluginVersionAt(name: string, path?: Path): string | undefined;
1171
+ /**
1172
+ * List every canonical mount path the named plugin is installed
1173
+ * at. Returns an empty array when the plugin is not installed.
1174
+ */
1175
+ getPluginMountPaths(name: string): readonly string[];
1098
1176
  /**
1099
1177
  * Register a handler, App, or plugin.
1100
1178
  *
@@ -1642,16 +1720,34 @@ declare class App implements IApp {
1642
1720
  */
1643
1721
  protected _options: Readonly<AppOptions>;
1644
1722
  /**
1645
- * Registry of installed plugins (name version) on this App.
1723
+ * Registry of installed plugins on this App, keyed by plugin name
1724
+ * then by canonical mount key (the joined `this._path` +
1725
+ * install-time `path`, falling back to `'/'` for a root install).
1726
+ * Inner-map value is the plugin version (or `undefined`).
1727
+ *
1728
+ * Per-path keying lets `hasPluginAt` answer "is plugin X mounted at
1729
+ * /api?" precisely. By default `install()` is permissive and
1730
+ * appends — same `(name, key)` writes the latest version. Plugins
1731
+ * opt into deduplication via `singleton` (any-path) or
1732
+ * `singletonByPath` (same-path) flags.
1733
+ *
1734
+ * Read by `flatten()` when merging a child's registry into this
1735
+ * one, so `parent.hasPlugin('foo')` reflects plugins installed on
1736
+ * mounted children too.
1646
1737
  *
1647
- * Read by `use(otherApp)` (via the public `plugins` getter) so
1648
- * plugin registries merge into the parent at flatten time —
1649
- * `parent.hasPlugin('foo')` then reflects plugins installed on
1650
- * apps mounted into it.
1738
+ * @protected
1739
+ */
1740
+ protected _plugins: Map<string, Map<string, string | undefined>>;
1741
+ /**
1742
+ * Names of plugins installed with `singleton: true`. Re-installing
1743
+ * any of these names — even at a different mount path — is a
1744
+ * silent no-op. The claim is sticky: once a name is in here, it
1745
+ * stays for the lifetime of the App. Propagated through
1746
+ * `flatten()` so a child's singleton claim survives the mount.
1651
1747
  *
1652
1748
  * @protected
1653
1749
  */
1654
- protected _plugins: Map<string, string | undefined>;
1750
+ protected _pluginSingletons: Set<string>;
1655
1751
  /**
1656
1752
  * Every route registered on this App, in registration order.
1657
1753
  *
@@ -1667,12 +1763,26 @@ declare class App implements IApp {
1667
1763
  */
1668
1764
  get routes(): readonly Route<Handler>[];
1669
1765
  /**
1670
- * Public read of the installed-plugin registry. Used by
1671
- * `use(child)` to merge child plugins into the parent at
1672
- * flatten time. Returned as `ReadonlyMap` — callers must not
1673
- * mutate; go through `use(plugin)` to install.
1766
+ * Public read of the installed-plugin registry. Used by `flatten()`
1767
+ * to merge a child's plugins into this App without reaching into
1768
+ * the child's protected fields.
1769
+ *
1770
+ * Outer key: plugin name. Inner key: canonical mount path (`'/'`
1771
+ * for root mounts). Inner value: installed version (or `undefined`).
1772
+ *
1773
+ * Returned as nested `ReadonlyMap` — callers must not mutate; go
1774
+ * through `app.use(plugin)` to install.
1674
1775
  */
1675
- get plugins(): ReadonlyMap<string, string | undefined>;
1776
+ get plugins(): ReadonlyMap<string, ReadonlyMap<string, string | undefined>>;
1777
+ /**
1778
+ * Public read of the sticky singleton-claim set. Once a plugin
1779
+ * name is claimed singleton on an App, every subsequent install
1780
+ * of that name is a silent no-op. Used by `flatten()` to
1781
+ * propagate child claims forward at mount time.
1782
+ *
1783
+ * Returned as `ReadonlySet` — callers must not mutate.
1784
+ */
1785
+ get pluginSingletons(): ReadonlySet<string>;
1676
1786
  /**
1677
1787
  * Register a route with the active router and record it on the
1678
1788
  * App so `setRouter` / `use(child)` can read the canonical list
@@ -1702,8 +1812,16 @@ declare class App implements IApp {
1702
1812
  * Walk the matched routes for the current event, dispatching each
1703
1813
  * handler in order. Re-entered (recursively) from the `setNext`
1704
1814
  * continuation so `event.next()` resumes from the next match.
1705
- */
1706
- protected runMatches(event: IDispatcherEvent, matches: readonly RouteMatch<Handler>[], matchesPath: string, startIndex: number): Promise<Response | undefined>;
1815
+ *
1816
+ * The match list is captured once per dispatch there is no
1817
+ * mid-walk path-rewrite refresh. `IAppEvent.path` is a snapshot
1818
+ * on the handler's facade event (see `event/module.ts`), so user
1819
+ * middleware cannot mutate the dispatcher's path before calling
1820
+ * `event.next()`. If a future API surface lets middleware rewrite
1821
+ * paths end-to-end, this loop will need a per-call refresh + a
1822
+ * `methodsAllowed` reset (see closed issue #913).
1823
+ */
1824
+ protected runMatches(event: IDispatcherEvent, matches: readonly RouteMatch<Handler>[], startIndex: number): Promise<Response | undefined>;
1707
1825
  delete(...handlers: (Handler | HandlerOptions)[]): this;
1708
1826
  delete(path: Path, ...handlers: (Handler | HandlerOptions)[]): this;
1709
1827
  get(...handlers: (Handler | HandlerOptions)[]): this;
@@ -1735,21 +1853,47 @@ declare class App implements IApp {
1735
1853
  *
1736
1854
  * @protected
1737
1855
  */
1738
- protected flatten(child: App, path: Path | undefined): void;
1856
+ protected flatten(child: IApp, path: Path | undefined): void;
1739
1857
  /**
1740
- * Check if a plugin with the given name is installed on this App.
1858
+ * Check if a plugin with the given name is installed on this App at
1859
+ * *any* mount path.
1741
1860
  */
1742
1861
  hasPlugin(name: string): boolean;
1862
+ /**
1863
+ * Check if a plugin with the given name is installed at the given
1864
+ * install-time `path`. `path` is interpreted the same way as the
1865
+ * argument to `app.use(path, plugin)` — relative to this App. Omit
1866
+ * `path` to check the root install.
1867
+ */
1868
+ hasPluginAt(name: string, path?: Path): boolean;
1743
1869
  /**
1744
1870
  * Get the version of an installed plugin by name, or `undefined`
1745
- * if the plugin is not installed.
1871
+ * when the plugin is not installed. When the plugin is mounted at
1872
+ * several paths, returns the version of an arbitrary mount —
1873
+ * typical usage installs the same plugin object at every mount, so
1874
+ * the version is identical. Use `getPluginVersionAt` to read the
1875
+ * version of a specific mount.
1746
1876
  */
1747
1877
  getPluginVersion(name: string): string | undefined;
1878
+ /**
1879
+ * Get the version of a plugin installed at the given install-time
1880
+ * `path`, or `undefined` when no install matches. `path` is
1881
+ * interpreted relative to this App (same convention as
1882
+ * `app.use(path, plugin)`); omit it to read the root install.
1883
+ */
1884
+ getPluginVersionAt(name: string, path?: Path): string | undefined;
1885
+ /**
1886
+ * List every canonical mount path the named plugin is installed
1887
+ * at. Returns an empty array when the plugin is not installed.
1888
+ * Each path is the joined `app._path` + install-time path,
1889
+ * normalized to `'/'` for root mounts.
1890
+ */
1891
+ getPluginMountPaths(name: string): readonly string[];
1748
1892
  protected install(plugin: Plugin, context?: PluginInstallContext): this;
1749
1893
  }
1750
1894
  //#endregion
1751
1895
  //#region src/app/options.d.ts
1752
1896
  declare function normalizeAppOptions(input: AppOptionsInput): AppOptions;
1753
1897
  //#endregion
1754
- export { AppOptions as $, HandlerType as $t, sendFormat as A, NodeHandler as At, setResponseHeaderAttachment as B, HandlerAfterListener as Bt, getRequestAcceptableContentTypes as C, isWebHandler as Ct, setResponseContentTypeByFileName as D, WebHandlerProvider as Dt, toResponse as E, WebHandler as Et, SendFileStats as F, Handler as Ft, EventStreamHandle as G, PathMatcher as Gt, appendResponseHeader as H, HandlerBeforeListener as Ht, sendFile as I, HandlerOptions as It, EventStreamListener as J, PathMatcherExecResult as Jt, EventStreamOptions as K, IPathMatcher as Kt, sendCreated as L, defineErrorHandler as Lt, SendFileContentOptions as M, defineCoreHandler as Mt, SendFileDisposition as N, CoreHandler as Nt, sendStream as O, fromNodeHandler as Ot, SendFileOptions as P, CoreHandlerOptions as Pt, AppContext as Q, HandlerSymbol as Qt, sendAccepted as R, ErrorHandler as Rt, getRequestAcceptableContentType as S, isHandlerOptions as St, isRequestCacheable as T, fromWebHandler as Tt, appendResponseHeaderDirective as U, HandlerErrorListener as Ut, setResponseHeaderInline as V, HandlerBaseOptions as Vt, serializeEventStreamMessage as W, isPath as Wt, ResponseCacheHeadersOptions as X, isError as Xt, EventStreamMessage as Y, PathMatcherOptions as Yt, setResponseCacheHeaders as Z, createError as Zt, getRequestAcceptableLanguages as _, isPluginError as _t, SmartRouter as a, AppRequest as an, Route as at, getRequestAcceptableCharset as b, matchHandlerMethod as bt, RequestProtocolOptions as c, NextFn as cn, LruCacheOptions as ct, RequestIpOptions as d, MethodNameLike as dn, Plugin as dt, DispatcherEvent as en, AppOptionsInput as et, getRequestIP as f, AppError as fn, PluginInstallContext as ft, getRequestAcceptableLanguage as g, PluginAlreadyInstalledError as gt, matchRequestContentType as h, PluginInstallError as ht, TrieRouter as i, AppEventCreateContext as in, ObjectLiteral as it, SendFileContent as j, NodeMiddleware as jt, sendRedirect as k, fromNodeMiddleware as kt, getRequestProtocol as l, HeaderName as ln, ICache as lt, getRequestHostName as m, HTTPErrorInput$1 as mn, PluginNotInstalledError as mt, App as n, IDispatcherEvent as nn, BaseRouterOptions as nt, SmartRouterOptions as o, AppResponse as on, RouteMatch as ot, RequestHostNameOptions as p, ErrorSymbol as pn, PluginInstallFn as pt, createEventStream as q, Path as qt, buildRoutePathMatcher as r, AppEvent as rn, IRouter as rt, LinearRouter as s, IAppEvent as sn, LruCache as st, normalizeAppOptions as t, IDispatcher as tn, IApp as tt, useRequestNegotiator as u, MethodName as un, isPlugin as ut, getRequestAcceptableEncoding as v, PluginError as vt, getRequestHeader as w, isWebHandlerProvider as wt, getRequestAcceptableCharsets as x, isHandler as xt, getRequestAcceptableEncodings as y, PluginErrorCode as yt, setResponseHeaderContentType as z, ErrorHandlerOptions as zt };
1755
- //# sourceMappingURL=index-6qjxyFZh.d.mts.map
1898
+ export { AppOptions as $, DispatcherEvent as $t, sendFormat as A, NodeMiddleware as At, setResponseHeaderAttachment as B, HandlerBaseOptions as Bt, getRequestAcceptableContentTypes as C, isWebHandlerProvider as Ct, setResponseContentTypeByFileName as D, fromNodeHandler as Dt, toResponse as E, WebHandlerProvider as Et, SendFileStats as F, HandlerOptions as Ft, EventStreamHandle as G, IPathMatcher as Gt, appendResponseHeader as H, HandlerErrorListener as Ht, sendFile as I, defineErrorHandler as It, EventStreamListener as J, PathMatcherOptions as Jt, EventStreamOptions as K, Path as Kt, sendCreated as L, ErrorHandler as Lt, SendFileContentOptions as M, CoreHandler as Mt, SendFileDisposition as N, CoreHandlerOptions as Nt, sendStream as O, fromNodeMiddleware as Ot, SendFileOptions as P, Handler as Pt, AppContext as Q, HandlerType as Qt, sendAccepted as R, ErrorHandlerOptions as Rt, getRequestAcceptableContentType as S, isWebHandler as St, isRequestCacheable as T, WebHandler as Tt, appendResponseHeaderDirective as U, isPath as Ut, setResponseHeaderInline as V, HandlerBeforeListener as Vt, serializeEventStreamMessage as W, PathMatcher as Wt, ResponseCacheHeadersOptions as X, createError as Xt, EventStreamMessage as Y, isError as Yt, setResponseCacheHeaders as Z, HandlerSymbol as Zt, getRequestAcceptableLanguages as _, PluginError as _t, SmartRouter as a, AppResponse as an, Route as at, getRequestAcceptableCharset as b, isHandler as bt, RequestProtocolOptions as c, HeaderName as cn, LruCacheOptions as ct, RequestIpOptions as d, AppError as dn, Plugin as dt, IDispatcher as en, AppOptionsInput as et, getRequestIP as f, ErrorSymbol as fn, PluginInstallContext as ft, getRequestAcceptableLanguage as g, isPluginError as gt, matchRequestContentType as h, PluginInstallError as ht, TrieRouter as i, AppRequest as in, ObjectLiteral as it, SendFileContent as j, defineCoreHandler as jt, sendRedirect as k, NodeHandler as kt, getRequestProtocol as l, MethodName as ln, ICache as lt, getRequestHostName as m, PluginNotInstalledError as mt, App as n, AppEvent as nn, BaseRouterOptions as nt, SmartRouterOptions as o, IAppEvent as on, RouteMatch as ot, RequestHostNameOptions as p, HTTPErrorInput$1 as pn, PluginInstallFn as pt, createEventStream as q, PathMatcherExecResult as qt, buildRoutePathMatcher as r, AppEventCreateContext as rn, IRouter as rt, LinearRouter as s, NextFn as sn, LruCache as st, normalizeAppOptions as t, IDispatcherEvent as tn, IApp as tt, useRequestNegotiator as u, MethodNameLike as un, isPlugin as ut, getRequestAcceptableEncoding as v, PluginErrorCode as vt, getRequestHeader as w, fromWebHandler as wt, getRequestAcceptableCharsets as x, isHandlerOptions as xt, getRequestAcceptableEncodings as y, matchHandlerMethod as yt, setResponseHeaderContentType as z, HandlerAfterListener as zt };
1899
+ //# sourceMappingURL=index-colifb1o.d.mts.map
package/dist/node.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as AppOptions, $t as HandlerType, A as sendFormat, At as NodeHandler, B as setResponseHeaderAttachment, Bt as HandlerAfterListener, C as getRequestAcceptableContentTypes, Ct as isWebHandler, D as setResponseContentTypeByFileName, Dt as WebHandlerProvider, E as toResponse, Et as WebHandler, F as SendFileStats, Ft as Handler, G as EventStreamHandle, Gt as PathMatcher, H as appendResponseHeader, Ht as HandlerBeforeListener, I as sendFile, It as HandlerOptions, J as EventStreamListener, Jt as PathMatcherExecResult, K as EventStreamOptions, Kt as IPathMatcher, L as sendCreated, Lt as defineErrorHandler, M as SendFileContentOptions, Mt as defineCoreHandler, N as SendFileDisposition, Nt as CoreHandler, O as sendStream, Ot as fromNodeHandler, P as SendFileOptions, Pt as CoreHandlerOptions, Q as AppContext, Qt as HandlerSymbol, R as sendAccepted, Rt as ErrorHandler, S as getRequestAcceptableContentType, St as isHandlerOptions, T as isRequestCacheable, Tt as fromWebHandler, U as appendResponseHeaderDirective, Ut as HandlerErrorListener, V as setResponseHeaderInline, Vt as HandlerBaseOptions, W as serializeEventStreamMessage, Wt as isPath, X as ResponseCacheHeadersOptions, Xt as isError, Y as EventStreamMessage, Yt as PathMatcherOptions, Z as setResponseCacheHeaders, Zt as createError, _ as getRequestAcceptableLanguages, _t as isPluginError, a as SmartRouter, an as AppRequest, at as Route, b as getRequestAcceptableCharset, bt as matchHandlerMethod, c as RequestProtocolOptions, cn as NextFn, ct as LruCacheOptions, d as RequestIpOptions, dn as MethodNameLike, dt as Plugin, en as DispatcherEvent, et as AppOptionsInput, f as getRequestIP, fn as AppError, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as PluginAlreadyInstalledError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppEventCreateContext, it as ObjectLiteral, j as SendFileContent, jt as NodeMiddleware, k as sendRedirect, kt as fromNodeMiddleware, l as getRequestProtocol, ln as HeaderName, lt as ICache, m as getRequestHostName, mn as HTTPErrorInput, mt as PluginNotInstalledError, n as App, nn as IDispatcherEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as AppResponse, ot as RouteMatch, p as RequestHostNameOptions, pn as ErrorSymbol, pt as PluginInstallFn, q as createEventStream, qt as Path, r as buildRoutePathMatcher, rn as AppEvent, rt as IRouter, s as LinearRouter, sn as IAppEvent, st as LruCache, t as normalizeAppOptions, tn as IDispatcher, tt as IApp, u as useRequestNegotiator, un as MethodName, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginError, w as getRequestHeader, wt as isWebHandlerProvider, x as getRequestAcceptableCharsets, xt as isHandler, y as getRequestAcceptableEncodings, yt as PluginErrorCode, z as setResponseHeaderContentType, zt as ErrorHandlerOptions } from "./index-6qjxyFZh.mjs";
1
+ import { $ as AppOptions, $t as DispatcherEvent, A as sendFormat, At as NodeMiddleware, B as setResponseHeaderAttachment, Bt as HandlerBaseOptions, C as getRequestAcceptableContentTypes, Ct as isWebHandlerProvider, D as setResponseContentTypeByFileName, Dt as fromNodeHandler, E as toResponse, Et as WebHandlerProvider, F as SendFileStats, Ft as HandlerOptions, G as EventStreamHandle, Gt as IPathMatcher, H as appendResponseHeader, Ht as HandlerErrorListener, I as sendFile, It as defineErrorHandler, J as EventStreamListener, Jt as PathMatcherOptions, K as EventStreamOptions, Kt as Path, L as sendCreated, Lt as ErrorHandler, M as SendFileContentOptions, Mt as CoreHandler, N as SendFileDisposition, Nt as CoreHandlerOptions, O as sendStream, Ot as fromNodeMiddleware, P as SendFileOptions, Pt as Handler, Q as AppContext, Qt as HandlerType, R as sendAccepted, Rt as ErrorHandlerOptions, S as getRequestAcceptableContentType, St as isWebHandler, T as isRequestCacheable, Tt as WebHandler, U as appendResponseHeaderDirective, Ut as isPath, V as setResponseHeaderInline, Vt as HandlerBeforeListener, W as serializeEventStreamMessage, Wt as PathMatcher, X as ResponseCacheHeadersOptions, Xt as createError, Y as EventStreamMessage, Yt as isError, Z as setResponseCacheHeaders, Zt as HandlerSymbol, _ as getRequestAcceptableLanguages, _t as PluginError, a as SmartRouter, an as AppResponse, at as Route, b as getRequestAcceptableCharset, bt as isHandler, c as RequestProtocolOptions, cn as HeaderName, ct as LruCacheOptions, d as RequestIpOptions, dn as AppError, dt as Plugin, en as IDispatcher, et as AppOptionsInput, f as getRequestIP, fn as ErrorSymbol, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as isPluginError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppRequest, it as ObjectLiteral, j as SendFileContent, jt as defineCoreHandler, k as sendRedirect, kt as NodeHandler, l as getRequestProtocol, ln as MethodName, lt as ICache, m as getRequestHostName, mt as PluginNotInstalledError, n as App, nn as AppEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as IAppEvent, ot as RouteMatch, p as RequestHostNameOptions, pn as HTTPErrorInput, pt as PluginInstallFn, q as createEventStream, qt as PathMatcherExecResult, r as buildRoutePathMatcher, rn as AppEventCreateContext, rt as IRouter, s as LinearRouter, sn as NextFn, st as LruCache, t as normalizeAppOptions, tn as IDispatcherEvent, tt as IApp, u as useRequestNegotiator, un as MethodNameLike, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginErrorCode, w as getRequestHeader, wt as fromWebHandler, x as getRequestAcceptableCharsets, xt as isHandlerOptions, y as getRequestAcceptableEncodings, yt as matchHandlerMethod, z as setResponseHeaderContentType, zt as HandlerAfterListener } from "./index-colifb1o.mjs";
2
2
  import * as _$srvx_node0 from "srvx/node";
3
3
  import * as _$srvx from "srvx";
4
4
  import { Server, ServerOptions } from "srvx";
@@ -7,5 +7,5 @@ import { Server, ServerOptions } from "srvx";
7
7
  declare function serve(app: IApp, options?: Omit<ServerOptions, 'fetch'>): Server;
8
8
  declare function toNodeHandler(app: IApp): _$srvx.NodeHttpHandler & _$srvx_node0.AdapterMeta;
9
9
  //#endregion
10
- export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginAlreadyInstalledError, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toNodeHandler, toResponse, useRequestNegotiator };
10
+ export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toNodeHandler, toResponse, useRequestNegotiator };
11
11
  //# sourceMappingURL=node.d.mts.map
package/dist/node.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-BfsqxIfL.mjs";
1
+ import { $ as setResponseHeaderContentType, A as isWebHandler, B as sendStream, C as getRequestAcceptableCharset, D as isHandler, E as matchHandlerMethod, F as defineCoreHandler, G as useRequestNegotiator, H as sendFormat, I as Handler, J as sendCreated, K as getRequestHeader, L as HandlerSymbol, M as fromNodeHandler, N as fromNodeMiddleware, O as isHandlerOptions, P as defineErrorHandler, Q as isError, R as HandlerType, S as getRequestAcceptableEncodings, T as isRequestCacheable, U as getRequestAcceptableContentType, V as sendRedirect, W as getRequestAcceptableContentTypes, X as toResponse, Y as sendAccepted, Z as createError, _ as getRequestHostName, a as LinearRouter, at as createEventStream, b as getRequestAcceptableLanguages, c as PluginNotInstalledError, ct as ErrorSymbol, d as isPluginError, dt as HeaderName, et as setResponseHeaderAttachment, f as PluginErrorCode, ft as MethodName, g as getRequestIP, h as getRequestProtocol, i as TrieRouter, it as appendResponseHeaderDirective, j as isWebHandlerProvider, k as fromWebHandler, l as PluginInstallError, lt as setResponseCacheHeaders, m as PathMatcher, n as normalizeAppOptions, nt as setResponseContentTypeByFileName, o as buildRoutePathMatcher, ot as serializeEventStreamMessage, p as isPath, pt as LruCache, q as sendFile, r as SmartRouter, rt as appendResponseHeader, s as isPlugin, st as AppError, t as App, tt as setResponseHeaderInline, u as PluginError, ut as AppEvent, v as matchRequestContentType, w as getRequestAcceptableCharsets, x as getRequestAcceptableEncoding, y as getRequestAcceptableLanguage, z as DispatcherEvent } from "./src-DE8cCC5t.mjs";
2
2
  import { serve as serve$1, toNodeHandler as toNodeHandler$1 } from "srvx/node";
3
3
  //#region src/_entries/node.ts
4
4
  function serve(app, options) {
@@ -11,6 +11,6 @@ function toNodeHandler(app) {
11
11
  return toNodeHandler$1(app.fetch.bind(app));
12
12
  }
13
13
  //#endregion
14
- export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginAlreadyInstalledError, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toNodeHandler, toResponse, useRequestNegotiator };
14
+ export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendAccepted, sendCreated, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toNodeHandler, toResponse, useRequestNegotiator };
15
15
 
16
16
  //# sourceMappingURL=node.mjs.map