add originalUrl

This commit is contained in:
dead_horse 2014-05-06 10:01:34 +08:00
parent 55ebdb522b
commit 21b7eb82b9
2 changed files with 5 additions and 0 deletions

View file

@ -117,6 +117,7 @@ throw err;
- `ctx.method=`
- `ctx.url`
- `ctx.url=`
- `ctx.originalUrl`
- `ctx.path`
- `ctx.path=`
- `ctx.query`

View file

@ -31,6 +31,10 @@
Set request URL, useful for url rewrites.
### req.originalUrl
Get request original URL.
### req.path
Get request pathname.