46 lines
882 B
TypeScript
46 lines
882 B
TypeScript
// Main server class
|
|
export { SmartServe } from './smartserve.classes.smartserve.js';
|
|
|
|
// Interfaces
|
|
export type {
|
|
// HTTP types
|
|
THttpMethod,
|
|
TRuntime,
|
|
// Request/Response
|
|
IRequestContext,
|
|
TRouteHandler,
|
|
IMethodOptions,
|
|
IRouteOptions,
|
|
// Interceptors
|
|
TRequestInterceptor,
|
|
TResponseInterceptor,
|
|
TGuardFunction,
|
|
IInterceptOptions,
|
|
IGuardOptions,
|
|
// WebSocket
|
|
IWebSocketMessage,
|
|
IWebSocketPeer,
|
|
IWebSocketHooks,
|
|
// Server config
|
|
ITLSConfig,
|
|
IKeepAliveConfig,
|
|
IStaticOptions,
|
|
IDirectoryListingOptions,
|
|
IFileEntry,
|
|
IWebDAVConfig,
|
|
ISmartServeOptions,
|
|
// Server instance
|
|
IServerStats,
|
|
ISmartServeInstance,
|
|
IConnectionInfo,
|
|
} from './smartserve.interfaces.js';
|
|
|
|
// Errors
|
|
export {
|
|
HttpError,
|
|
RouteNotFoundError,
|
|
UnsupportedRuntimeError,
|
|
ServerAlreadyRunningError,
|
|
ServerNotRunningError,
|
|
} from './smartserve.errors.js';
|