D simple web server

2013-08-31 Thread gedaiu
Hi, Because I have a personal project based on a custom web server, and I couldn't find one implemented in D(excepting vibe.d), I started to implement some web server classes in D with the hope that my work will be useful to someone else as well. If you are interested in this project, or if

Re: D simple web server

2013-08-31 Thread Adam D. Ruppe
On Saturday, 31 August 2013 at 16:42:11 UTC, gedaiu wrote: Because I have a personal project based on a custom web server, and I couldn't find one implemented in D(excepting vibe.d) My cgi.d has one too:

Re: D simple web server

2013-08-31 Thread Rémy Mouëza
Your code seems rather nice. That said, here are some remarks of a purely stylistic nature :-) : - You can use foreach instead of for to simplify your loop statements over arrays and other collections: auto array = [1, 2, 3]; foreach (item; array) { writeln (item); }