Using property properly
This commit is contained in:
parent
1d9a0e1d31
commit
d7d3e84d16
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ throw err;
|
||||||
|
|
||||||
To bypass Koa's built-in response handling, you may explicitly set `this.respond = false;`. Use this if you want to write to the raw `res` object instead of letting Koa handle the response for you.
|
To bypass Koa's built-in response handling, you may explicitly set `this.respond = false;`. Use this if you want to write to the raw `res` object instead of letting Koa handle the response for you.
|
||||||
|
|
||||||
Note that using this is __not__ supported by Koa. This may break intended functionality of Koa middleware and Koa itself. Using this properly is considered a hack and is only a convenience to those wishing to use traditional `fn(req, res)` functions and middleware within Koa.
|
Note that using this is __not__ supported by Koa. This may break intended functionality of Koa middleware and Koa itself. Using this property is considered a hack and is only a convenience to those wishing to use traditional `fn(req, res)` functions and middleware within Koa.
|
||||||
|
|
||||||
## Request aliases
|
## Request aliases
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue