You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
As of (I tihnk) v0.11.6, the API of process.binding('http_parser').HTTPParser has started using magic numbers instead of names for things.
One such change is replacing parser.onMessageComplete and friends with parser[3], although thankfully those magic numbers can be replaced with parser[HTTPParser.kOnMessageComplete].
The HTTP method yielded by these callbacks have also been replaced with numbers. I use this parser in websocket-driver and have had to include my own number->name map in my class that wraps HTTPParser in a stable API.
I don't know if this is intended to be a public API, but if so could it be kept more expressive and informative, and if not can you let me know what I should use instead.