Subject: Re: [boost] [review][beast] Review of Beast starts today : July 1 - July 10
From: VinÃcius dos Santos Oliveira (vini.ipsmaker_at_[hidden])
Date: 2017-07-08 14:19:24
I only found the time to join the discussion now ð¢
I'd appreciate if 4 more days were given to review it, but I'll do my best
to review it until July 10.
This is the first message I'll answer from the whole discussion. Time to
have fun discussing HTTP ð
2017-07-01 16:46 GMT+02:00 Niall Douglas via Boost <boost_at_[hidden]>:
> - I think basic_parser should be designed to use forward iterators
> instead of requiring random access, or accept partial input in chunks
> whilst keeping state. This would allow it to work seamlessly with
> discontiguous underlying storage.
After the review on my library, I noted there was a big interest in
low-level control for handling HTTP messages. I developed a parser library
which has the good properties of the NodeJS parser (no syscalls, no
allocation/internal-buffers, interruptable at any time...) and avoids its
bad design decisions.
In less than 170 lines you can handle the receiving part of your library:
And I don't assume you're going to read RFC7230. Decoded values are decoded
(different than NodeJS "easy-to-use-wrong" parser).
Anyway, it's fairly easy to adapt this parser model to C++ iterator model
(I had this concern in mind when designing the API â as a matter of fact,
one of the test files adapts the parser model so I can define a lot of
tests just by comparing two vectors).
And I might answer this same message again after finishing the review. Lots
of hours ahead of me to spend with HTTP.
-- VinÃcius dos Santos Oliveira https://vinipsmaker.github.io/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk