refactor request docs to use this.request

maybe we should do this with all of them, but then we might
need a section showing ctx.* stuff, people might miss the aliasing all together
master
TJ Holowaychuk 2014-02-14 09:40:58 -08:00
parent 785aba879c
commit e56f442222
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@
Get request `Content-Type` void of parameters such as "charset".
```js
var ct = this.type;
var ct = this.request.type;
// => "image/png"
```
@ -78,7 +78,7 @@ var ct = this.type;
Get request charset when present, or `undefined`:
```js
this.charset
this.request.charset
// => "utf-8"
```