diff --git a/index.js b/index.js index f2c4e91..6de9edc 100644 --- a/index.js +++ b/index.js @@ -116,5 +116,11 @@ function createRes(callback) { // _res.send(data) // } }; + res.getHeader = function(name) { + if ( 'undefined' !== typeof headers[name] ) { + return headers[name]; + } + return null; + }; return res; }