@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.
12 lines (11 loc) • 696 B
TypeScript
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';
declare class MiddlewareRequestHandler implements RequestHandlerInterface {
private middleware;
private handler;
constructor(middleware: MiddlewareInterface, handler: RequestHandlerInterface);
handle(request: ServerRequestInterface): Promise<ResponseInterface>;
}
export default MiddlewareRequestHandler;