Open SEAPUNK opened 8 years ago
Hell, why not even go the full mile, and do ctx.request, ctx.response?
I mean, it makes sense. The original goal was to have a smooth mapping of router -> raw function, but with all these changes and compatibility additions, this might as well be router -> pcb-function proxy -> raw function.
Practically how I'd do it if I used the Koa webserver instead.
Ref: https://github.com/koajs/koa/blob/v2.x/lib/response.js#L68-L179