Skip to content

rawPacket and bytesParsed on clientError callback Error parameter #49

@bradisbell

Description

@bradisbell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions