mafintosh / turbo-http

Blazing fast low level http server
MIT License
1k stars 47 forks source link

KoaJs support #29

Open alexpts opened 5 years ago

alexpts commented 5 years ago
const http = require('turbo-http'); // or native http
const Koa = require('koa');
const app = new Koa;

app.use(async ctx => {
    ctx.body = {message: 'ok'};
});

http.createServer(app.callback()).listen(8003);

I have error TypeError: this.res.removeHeader is not a function