From 00e8f7a1b7603aabdb7fb3567f485cb1c2076702 Mon Sep 17 00:00:00 2001 From: Alex Berk Date: Tue, 25 Jun 2019 23:11:44 -0400 Subject: [PATCH] docs: ctx.type aliases ctx.response, not ctx.request (#1343) --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 1a77b05..4f5d62b 100644 --- a/Readme.md +++ b/Readme.md @@ -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),