Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Re-export HTTP parsers
This change reverses 299cf84. Having HTTP parsers exported is useful when needing to debug HTTP connections (accessing raw buffers in particular). An example usage can be found here: http://miensol.pl/2014/03/23/nonintrusive-http-proxy-in-nodejs.html

NB: Commit message for 299cf84 mentions that a different name might be needed, as changes to the parsers' lifecycle may break existing usage.
  • Loading branch information
lllama committed Feb 9, 2015
commit ba63e7496d8de37010a84123dac31bc90fc7b431
1 change: 1 addition & 0 deletions lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exports.IncomingMessage = require('_http_incoming').IncomingMessage;

const common = require('_http_common');
exports.METHODS = common.methods.slice().sort();
exports.parsers = common.parsers;


exports.OutgoingMessage = require('_http_outgoing').OutgoingMessage;
Expand Down