-
I think multer should write to `ctx.request` because that is the [koa request object](https://github.com/koajs/koa/blob/master/docs/api/context.md#ctxrequest) currently it is writing to the `ctx.req`…
-
I am evaluating various JS frameworks for a new REST API and so far HapiJS seems to be a winner except that KaoJS's approach of using ES 6 generators rather then callbacks looks very attractive. Does …
mmc41 updated
5 years ago
-
I want to submit a PR into [koajs.com](https://github.com/koajs/koajs.com/).
I wanted to update the docs to use the new async function api instead of the deprecated generator api.
I followed the…
-
I parsed the body and it works, but if i dump the rawBody i get nothing.
the order was:
1. middleware
2. console log body
-
Could you lint the production code?
Because now eslint checks only the test code.
You have to:
- add `*.js` in this line https://github.com/koajs/joi-router/blob/master/package.json#L16
- create…
-
https://github.com/koajs/koa/blob/75233d974a30af6e3b8ab38a73e5ede67172fc1c/lib/application.js#L127
looking at the callback for https.createServer(), which (afaik) will be executed on every request:…
-
Attempting to access a non-JSON request body
The docs here: https://github.com/lwsjs/local-web-server/wiki/How-to-access-the-body-of-an-incoming-request
`require('lws-body-parser')` but don't te…
-
The example code uses app.listen but I'm using the http.createServer method outlined here: https://github.com/koajs/koa/blob/master/docs/api/index.md#applisten
This lets socket.io to work:
```
ap…
-
Is it better to use `Array.prototype.includes` instead of `Array.prototype.indexOf`? It's easier to understand directly.
https://github.com/koajs/koa/blob/master/lib/request.js#L348
thanks
-
I found some code in the test case and **added a line** to describe the problem I encountered.
```
it('should respond 204 with status=200', async () => {
const app = new Koa();
app.u…