docs: ctx.type aliases ctx.response, not ctx.request (#1343)
This commit is contained in:
parent
62f29eb0c4
commit
00e8f7a1b7
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue