Skip to content

async_wrap: WIP/Experiment, init/destroy HTTPParser on each use

Wasn't sure the best place to have this discussion, so I went with opening a PR and figure it can be closed.

Been working with AsyncWrap a bit and it was very cool to see a7e49c88 land the other day :). Was playing with the following, which I know is probably horrible, of firing the init and destroy hooks per usage of the HTTPParser, giving a clear parent/child relationship per-request, while still being able to reuse the actually instances.

Just wanted to get thoughts on the concept, @trevnorris

Merge request reports

Loading