On Tuesday, 16 August 2016 at 09:16:40 UTC, yawniek wrote:
imo things should be modularized.
so there should be (fast) protocol parsers first, something like
https://github.com/h2o/picohttpparser or
https://github.com/seanmonstar/httparse
then a very simple eventloop that has abstractions and range
based interfaces for reading/writing data into different types
of sockets.
There is common http message parser that used in nginx and
nodejs. I think it can be ported from C to D. Both sync and async
code can be built around this parser. But async library accepted
as standard need before this.