http-parser is considered unmaintained. On their repository they suggest people move to llhttp. There is a ruby binding for it in https://github.com/metabahn/llhttp, linked from the original project https://llhttp.org/