Skip to content

Commit

Permalink
docs: ctx.type aliases ctx.response, not ctx.request (#1343)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcberk authored and dead-horse committed Jun 26, 2019
1 parent 62f29eb commit 00e8f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 00e8f7a

Please sign in to comment.