context: delegate etag/last-modified
This commit is contained in:
parent
851160e0ae
commit
01dd6a33c5
2 changed files with 14 additions and 3 deletions
|
@ -139,10 +139,10 @@ delegate(proto, 'response')
|
|||
.access('body')
|
||||
.access('length')
|
||||
.access('type')
|
||||
.access('lastModified')
|
||||
.access('etag')
|
||||
.getter('headerSent')
|
||||
.getter('writable')
|
||||
.setter('lastModified')
|
||||
.setter('etag');
|
||||
.getter('writable');
|
||||
|
||||
/**
|
||||
* Request delegation.
|
||||
|
|
|
@ -321,6 +321,17 @@ module.exports = {
|
|||
this.set('ETag', val);
|
||||
},
|
||||
|
||||
/**
|
||||
* Get the ETag of a response.
|
||||
*
|
||||
* @return {String}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
get etag() {
|
||||
return this.get('ETag');
|
||||
},
|
||||
|
||||
/**
|
||||
* Return the request mime type void of
|
||||
* parameters such as "charset".
|
||||
|
|
Loading…
Reference in a new issue