http_trace icon indicating copy to clipboard operation
http_trace copied to clipboard

NodeJS HTTPParser no longer working

Open gregnr opened this issue 10 years ago • 2 comments

This project does not seem to work with the latest versions of NodeJS (I'm running 0.12.1). The problem seems to be related to the native HTTPParser module in NodeJS:

var HTTPParser = process.binding("http_parser").HTTPParser;

I've tried running tests on my own project using HTTPParser, and the onBody, onHeadersComplete, and onMessageComplete handlers never seem to call.

Perhaps NodeJS changed something in their native modules that breaks the current implementation? I've tried using @creationix's http-parser-js module as an alternative, but it's current state leaves out features like gzip decompression and HTTP pipelining which I need.

Any ideas on a solution?

gregnr avatar May 15 '15 05:05 gregnr

Currently experiencing the same problem.

would be glad to here some possible solution for this.

anthonyencarnacion avatar Jul 08 '15 08:07 anthonyencarnacion

I began my own HTTP parser here: https://github.com/gregnr/node-http-parser

Contributions are welcome.

gregnr avatar Jul 08 '15 14:07 gregnr