UNPKG

@chubbyjs/chubbyjs-framework

Version:

A minimal, highly performant middleware PSR-15 microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.

14 lines (13 loc) 870 B
import ResponseInterface from '@chubbyjs/psr-http-message/dist/ResponseInterface'; import ServerRequestInterface from '@chubbyjs/psr-http-message/dist/ServerRequestInterface'; import RequestHandlerInterface from '@chubbyjs/psr-http-server-handler/dist/RequestHandlerInterface'; import MiddlewareInterface from '@chubbyjs/psr-http-server-middleware/dist/MiddlewareInterface'; import MiddlewareDispatcherInterface from './Middleware/MiddlewareDispatcherInterface'; declare class Application implements RequestHandlerInterface { private middlewares; private middlewareDispatcher; private requestHandler; constructor(middlewares: Array<MiddlewareInterface>, middlewareDispatcher?: MiddlewareDispatcherInterface, requestHandler?: RequestHandlerInterface); handle(request: ServerRequestInterface): Promise<ResponseInterface>; } export default Application;