On Thursday, 2 June 2016 at 18:14:08 UTC, Jack Stouffer wrote:
On Thursday, 2 June 2016 at 15:40:28 UTC, Seb wrote:
I heard this a lot too.
"You don't have a web server in your standard libary?? It's
2016!"
Just to be clear, it's not a good idea to have a full blown
server in your stdlib. Non-toy web servers are complicated
pieces of software involving > 10KLOC. Not only that, but there
are many ways to skin a cat in this field. Different products
need varying, sometimes mutually exclusive, features from their
servers.
Therefore, I don't web servers are good candidates for
standardization.
Here is one argument to have a (minimalistic) web server in
Phobos: Testing. You don't want to require internet access for
testing. You don't want the (heavy) vibed dependency just for the
unittests.
Specific use case:
https://github.com/ikod/dlang-requests/issues/11#issuecomment-229354711