Skip to content
Permalink
Browse files

[fix] Note that router.attach is http-only

Fixes #214.
  • Loading branch information...
Beau Gunderson
Beau Gunderson committed Jun 25, 2014
1 parent 3976792 commit e4a7d4a3d002ef2cdaf79fafd787d33d79a544d5
Showing with 4 additions and 3 deletions.
  1. +4 −3 README.md
@@ -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');

0 comments on commit e4a7d4a

Please sign in to comment.
You can’t perform that action at this time.