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

This commit is contained in:
Alex Berk 2019-06-25 23:11:44 -04:00 committed by Yiyu He
parent 62f29eb0c4
commit 00e8f7a1b7

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 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`. instead of `ctx.request.accepts`.
For more information on `Request`, `Response` and `Context`, see the [Request API Reference](docs/api/request.md), For more information on `Request`, `Response` and `Context`, see the [Request API Reference](docs/api/request.md),