@h4ad/serverless-adapter
Version:
Run REST APIs and other web applications using your existing Node.js application framework (NestJS, Express, Koa, Hapi, Fastify and many others), on top of AWS, Azure, Digital Ocean and many other clouds.
1 lines • 883 B
Source Map (JSON)
{"version":3,"sources":["../../../src/frameworks/koa/koa.framework.ts"],"sourcesContent":["//#region Imports\n\nimport type { IncomingMessage, ServerResponse } from 'http';\nimport type Application from 'koa';\nimport type { FrameworkContract } from '../../contracts';\n\n//#endregion\n\n/**\n * The framework that forwards requests to koa handler\n *\n * @breadcrumb Frameworks / KoaFramework\n * @public\n */\nexport class KoaFramework implements FrameworkContract<Application> {\n /**\n * {@inheritDoc}\n */\n public sendRequest(\n app: Application,\n request: IncomingMessage,\n response: ServerResponse,\n ): void {\n app.callback()(request, response);\n }\n}\n"],"mappings":"6CAcO,IAAMA,EAAN,KAA6D,CAdpE,MAcoE,CAAAC,EAAA,qBAI3D,YACLC,EACAC,EACAC,EACM,CACNF,EAAI,SAAS,EAAEC,EAASC,CAAQ,CAClC,CACF","names":["KoaFramework","__name","app","request","response"]}