-
Some middlewares I use won't don't throw when something is wrong, but will return a 500.
Currently you handle only 404:
https://github.com/koajs/json-error/blob/9d5fe96551e6901206eb92adfec232ea19aa5…
-
I have error when I use requestBody in yaml and use mockResponseForOperation:
```js
[ { keyword: 'required',
dataPath: '',
schemaPath: '#/required',
params: { missingProperty: 'reques…
-
Can't get the **layout feature** to work. I have the following files.
File `index.js`
```js
const path = require('path')
const views = require('koa-views')
const Koa = require('koa')
const a…
-
When requesting the length using `ctx.length`, Koa parses the content length response header using the double tilde operator: https://github.com/koajs/koa/blob/master/lib/response.js#L214 However, thi…
-
I'm using the example given. But it doesn't work.
```
const mount = require('koa-mount');
const Koa = require('koa');
const app = new Koa();
async function world(ctx, next) {
await next(…
-
Requested by @UnbrandedTech in #197
-
Hi, from reading the code and previous issues I believe I have the right answer, but since it is not 100% clear I just wanted to make sure:
Is it the developer's (my) responsibility to call `encode…
-
## 背景
目前 Egg.js 继承的 [koa-router](https://github.com/alexmingoia/koa-router/) 基本上处于维护瘫痪状态,各种特性、PR、Issue 都基本上没人处理了。无法达到很好的一个特性更新的效果。
例如这里有一个 [PR](https://github.com/alexmingoia/koa-router/pull…
-
If opts is omitted, `this.tokens = csrf(opts)` is created without the default values .. all the default values went into this.opts .. So either that is a bug or the code could probably be clearer c…
-
As a framework, I suggest choosing Koa or Express.
Links:
https://expressjs.com/
https://koajs.com/