Skip to content

Commit 00e8f7a

Browse files
alexcberkdead-horse
authored andcommitted
docs: ctx.type aliases ctx.response, not ctx.request (#1343)
1 parent 62f29eb commit 00e8f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ app.use(async (ctx, next) => {
136136
```
137137

138138
The `Context` object also provides shortcuts for methods on its `request` and `response`. In the prior
139-
examples, `ctx.type` can be used instead of `ctx.request.type` and `ctx.accepts` can be used
139+
examples, `ctx.type` can be used instead of `ctx.response.type` and `ctx.accepts` can be used
140140
instead of `ctx.request.accepts`.
141141

142142
For more information on `Request`, `Response` and `Context`, see the [Request API Reference](docs/api/request.md),

0 commit comments

Comments
 (0)