remove a few redundant methods for header field values

This commit is contained in:
TJ Holowaychuk 2013-11-08 14:39:20 -08:00
parent 9778933e25
commit 8b64343813

View file

@ -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.
* *