docs: ctx.type aliases ctx.response, not ctx.request (#1343)

master
Alex Berk 2019-06-25 23:11:44 -04:00 committed by Yiyu He
parent 62f29eb0c4
commit 00e8f7a1b7
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ app.use(async (ctx, next) => {
```
The `Context` object also provides shortcuts for methods on its `request` and `response`. In the prior
examples, `ctx.type` can be used instead of `ctx.request.type` and `ctx.accepts` can be used
examples, `ctx.type` can be used instead of `ctx.response.type` and `ctx.accepts` can be used
instead of `ctx.request.accepts`.
For more information on `Request`, `Response` and `Context`, see the [Request API Reference](docs/api/request.md),