News for hackers. Stuff that matters.
Re:Show HN: Micro HTTP server in 22 lines of C by nly on Saturday July 31, 2021 @07:46PM (#28022431)
Are you handling the obs-fold? Because this is something the joyent parser falls over at (a streaming parser must buffer the obs-fold to disambiguate). I don't see it in your code. If you handle it your parser can't be O(1) space.

See the remark at the bottom of the Boost Beast parser docs for a hint at the trade off here:

https://www.boost.org/doc/libs/1_75_0/libs/beast/doc/html/be...

I think the implementation is gold standard:

https://github.com/boostorg/beast/blob/develop/include/boost...

Re:Show HN: Micro HTTP server in 22 lines of C by jart on Sunday August 01, 2021 @01:37AM (#28024050)
We are no longer required to support line folding so redbean doesn't (see RFC7230 §3.2.4) Do you know what if anything needs it?
Re:Show HN: Micro HTTP server in 22 lines of C by lttlrck on Saturday July 31, 2021 @10:14PM (#28023191)
From the link:

> Line folding is forbidden.