Currently 3rd party code is used for parsing HTTP headers. Qt seems to have QHttpHeaderParser class for parsing HTTP responses. Perhaps it could be extended to support HTTP requests and be used instead the 3rd party component.
The used project (https://github.com/nodejs/http-parser) also has this in its README:
http-parser is not actively maintained. New projects and projects looking to migrate should consider llhttp.