diff --git a/docs/api/request.md b/docs/api/request.md index 0886354..8fdaa2f 100644 --- a/docs/api/request.md +++ b/docs/api/request.md @@ -315,10 +315,6 @@ this.acceptsLanguages(); Return the request socket. -### req.vary(field) - - Vary on `field`. - ### req.get(field) Return request header. diff --git a/lib/request.js b/lib/request.js index 4625113..eda4675 100644 --- a/lib/request.js +++ b/lib/request.js @@ -459,17 +459,6 @@ module.exports = { return this.accept.languages.apply(this.accept, arguments); }, - /** - * Vary on `field`. - * - * @param {String} field - * @api public - */ - - vary: function(field){ - this.append('Vary', field); - }, - /** * Check if the incoming request contains the "Content-Type" * header field, and it contains any of the give mime `type`s.