creationix/http-parser-js

`rawPacket` and `bytesParsed` on clientError callback Error parameter

bradisbell opened this issue · 0 comments

Node.js' HTTP parser has the following documented for clientError:

err is an instance of Error with two extra columns:

bytesParsed: the bytes count of request packet that Node.js may have parsed correctly;
rawPacket: the raw packet of current request.

https://nodejs.org/api/http.html#http_event_clienterror

For better compatibility, it'd be a nice enhancement to see this in http-parser-js. Thank you.