flummpress/dist/index.d.ts
2025-03-24 14:38:12 +01:00

18 lines
538 B
TypeScript

import Router, { Request, Response, Handler } from "./router.js";
import Tpl from "./template.js";
export { Router, Tpl, Request, Response, Handler };
export default class Flummpress {
private server?;
private container;
private middleware;
router: Router;
constructor();
use<T>(plugin: string | Router | Handler, factory?: () => T): this;
resolve<T>(name: string): T;
private processPipeline;
listen(...args: any[]): this;
private parseRequest;
private readBody;
private createResponse;
}