From cf580dbaf3868aae34286899faf66c2d0abc2e4c Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Fri, 8 Nov 2013 14:40:58 -0800 Subject: [PATCH] remove trailer methods less common than .auth which we removed as well but we can add them back if it becomes a common request --- lib/context.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/lib/context.js b/lib/context.js index 43fbae3..78d0eb0 100644 --- a/lib/context.js +++ b/lib/context.js @@ -924,31 +924,6 @@ Context.prototype = { } }, - /** - * Get the trailing headers to a request. - * - * @param {Object} - * @api public - */ - - get trailers() { - return this.req.trailers; - }, - - /** - * Add trailing headers to the response. - * - * Maybe: - * - throw if not chunked encoding - * - * @param {object} headers - * @api public - */ - - addTrailers: function(headers){ - return this.res.addTrailers(headers); - }, - /** * Append `val` to header `field`. *