UNPKG

zents

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

15 lines (14 loc) 709 B
/// <reference types="node" /> import type { HTTPVersion, Instance as RouterInstance } from 'find-my-way'; import type { IncomingMessage, Server as NodeHttpServer, ServerResponse } from 'http'; import type { Controllers } from '../types/types'; import type { Server as NodeHttpsServer } from 'https'; import type { Registry } from '../core/Registry'; export declare class Server { router: RouterInstance<HTTPVersion.V1>; protected controllers: Controllers; constructor(registry: Registry); listen(...args: any[]): NodeHttpServer | NodeHttpsServer; protected createRequestHandler(): (req: IncomingMessage, res: ServerResponse) => void; protected createHttpsServer(): NodeHttpsServer; }