remove a few redundant methods for header field values
This commit is contained in:
parent
9778933e25
commit
8b64343813
1 changed files with 0 additions and 26 deletions
|
@ -924,32 +924,6 @@ Context.prototype = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
setHeader: function(field, val){
|
|
||||||
this.set(field, val);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the current response header `name`.
|
|
||||||
*
|
|
||||||
* @param {String} name
|
|
||||||
* @api public
|
|
||||||
*/
|
|
||||||
|
|
||||||
getHeader: function(name){
|
|
||||||
return this.res.getHeader(name);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Remove the current response header `name`.
|
|
||||||
*
|
|
||||||
* @param {String} name
|
|
||||||
* @api public
|
|
||||||
*/
|
|
||||||
|
|
||||||
removeHeader: function(name){
|
|
||||||
return this.res.removeHeader(name);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the trailing headers to a request.
|
* Get the trailing headers to a request.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue