News for hackers. Stuff that matters.
Re:A Universal I/O Abstraction for C++ (2020) by v8dev123 on Sunday April 18, 2021 @09:16PM (#26858252)
You might love evpp instead ASIO. It's just pain to install it but once you do it's a heaven.

As for HTTP parsing, llhttp does great job. It however lack multipart parsing.

Re:A Universal I/O Abstraction for C++ (2020) by nly on Monday April 19, 2021 @05:57AM (#26860905)
Boost.Beast has its own HTTP parser[0], during the development of which Vinnie Falco (the principle author of Beast) found many bugs/inconsistencies in Node.js's own parser[1].

Personally I'd rather use this than something based on Node.js http-parser.

[0] https://www.boost.org/doc/libs/develop/libs/beast/doc/html/b...

[1] https://github.com/nodejs/http-parser/issues?q=is%3Aissue+au...

Re:A Universal I/O Abstraction for C++ (2020) by secondcoming on Monday April 19, 2021 @07:10AM (#26861350)
We actually use the original node.js parser code (http_parser), which was originally based _I believe_ on the nginx parser. The Node people have since moved on to generating the C parser code with Typescript because the original code was too difficult to maintain (llparse).

Like I said, human-readable HTTP needs to die, but it's far too late.

Re:A Universal I/O Abstraction for C++ (2020) by v8dev123 on Monday April 19, 2021 @12:31PM (#26864649)
llhttp different from the original http-parser. It has lesser bugs because it's written in Typescript which transpiled to C and it's faster than the original http-parser