18 lines
452 B
TypeScript
18 lines
452 B
TypeScript
import Router from "./router.js";
|
|
import Tpl from "./template.js";
|
|
import { Handler } from "./types.js";
|
|
export { Router, Tpl };
|
|
export default class Flummpress {
|
|
private server?;
|
|
router: Router;
|
|
tpl: Tpl;
|
|
middleware: Handler[];
|
|
constructor();
|
|
use(plugin: Router | Tpl | Handler): this;
|
|
private processPipeline;
|
|
listen(...args: any[]): this;
|
|
private parseRequest;
|
|
private readBody;
|
|
private createResponse;
|
|
}
|