add ctx.host= delegate
This commit is contained in:
parent
43a8c12028
commit
26fb6a138a
2 changed files with 9 additions and 0 deletions
|
@ -119,6 +119,7 @@ throw err;
|
|||
- `ctx.querystring=`
|
||||
- `ctx.length`
|
||||
- `ctx.host`
|
||||
- `ctx.host=`
|
||||
- `ctx.fresh`
|
||||
- `ctx.stale`
|
||||
- `ctx.socket`
|
||||
|
|
|
@ -275,6 +275,14 @@ module.exports = {
|
|||
return this.request.host;
|
||||
},
|
||||
|
||||
/**
|
||||
* Delegate to Request#host=.
|
||||
*/
|
||||
|
||||
set host(val) {
|
||||
this.request.host = val;
|
||||
},
|
||||
|
||||
/**
|
||||
* Delegate to Request#fresh.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue