From d9e56b901d7e35d6326133995e351d77bcbb392b Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Mon, 30 Dec 2013 22:07:22 -0800 Subject: [PATCH] docs: clarify node response property support --- docs/api/context.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/api/context.md b/docs/api/context.md index ba52f67..56e1e52 100644 --- a/docs/api/context.md +++ b/docs/api/context.md @@ -35,7 +35,12 @@ app.use(function *(){ Node's `response` object. - Note: bypassing Koa's response handling and calling `res.writeHead()`, `res.write()` or `res.end()` is __not__ supported. + Bypassing Koa's response handling is __not supported__. Avoid using the following node properties: + +- `res.statusCode` +- `res.writeHead()` +- `res.write()` +- `res.end()` ### ctx.request