Skip to content

Commit

Permalink
[fix] Note that router.attach is http-only
Browse files Browse the repository at this point in the history
Fixes #214.
  • Loading branch information
Beau Gunderson committed Jun 25, 2014
1 parent 3976792 commit e4a7d4a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -708,9 +708,10 @@ call the `setRoute()` method yourself.

## Attach Properties To `this`

Generally, the `this` object bound to route handlers, will contain the request
in `this.req` and the response in `this.res`. One may attach additional
properties to `this` with the `router.attach` method:
**Available in the http router only.** Generally, the `this` object bound to
route handlers, will contain the request in `this.req` and the response in
`this.res`. One may attach additional properties to `this` with the
`router.attach` method:

```js
var director = require('director');
Expand Down

0 comments on commit e4a7d4a

Please sign in to comment.