app.callback()
使い方のイメージ
code:ts
const app = new Koa();
const handler = app.callback();
このhandlerの型のイメージ
code:ts
(req: http.IncomingMessage, res: http.ServerResponse) => void
code:ts
const server = http.createServer(handler);
これで、Koaで書いたアプリをNodeのHTTPサーバとして起動できる