Re: D simple web server

2013-09-10 Thread gedaiu
Hi, I added websocket support to the server. This is the link to the git repo: https://github.com/gedaiu/DSWS Thanks, Bogdan

Re: D simple web server

2013-09-03 Thread gedaiu
Thanks for reply, @Adam D. Ruppe I ignored your collection of tools but is not very good documented... @Rémy Mouëza When I started my project, I wanted to use mongoose but there where no bindings for D at that time, so I decided to use a simpler web server, libmicrohttpd, but it was not the

Re: D simple web server

2013-09-03 Thread Craig Dillabaugh
On Saturday, 31 August 2013 at 16:42:11 UTC, gedaiu wrote: 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

Re: D simple web server

2013-09-03 Thread gedaiu
I belive the fails are from the writeln. I made a commit where i removed them. Please update the code thanks Bogdan On Tuesday, 3 September 2013 at 15:49:44 UTC, Batuhan Göksu wrote: On Tuesday, 3 September 2013 at 15:23:36 UTC, gedaiu wrote: Hi, nice test! on my computer(linux, i5, 8gb

Re: D simple web server

2013-09-03 Thread gedaiu
Hi, nice test! on my computer(linux, i5, 8gb ram) i have these results: siege -d10 -c50 -t 133s http://localhost:8080/ Transactions: 1290 hits Availability: 100.00 % Elapsed time: 132.70 secs Data transferred: 0.01 MB Response

Re: D simple web server

2013-09-03 Thread gedaiu
I did nt made it to run it as a library... And it's a project to big for what I need... or maybe I am wrong... i'm a noobie with D. Thanks, Bogdan On Tuesday, 3 September 2013 at 15:15:03 UTC, Craig Dillabaugh wrote: On Saturday, 31 August 2013 at 16:42:11 UTC, gedaiu wrote: Hi, Because I

Re: D simple web server

2013-09-03 Thread Craig Dillabaugh
On Tuesday, 3 September 2013 at 15:27:34 UTC, gedaiu wrote: I did nt made it to run it as a library... And it's a project to big for what I need... or maybe I am wrong... i'm a noobie with D. Thanks, Bogdan On Tuesday, 3 September 2013 at 15:15:03 UTC, Craig Dillabaugh wrote: On Saturday,

Re: D simple web server

2013-09-03 Thread Batuhan Göksu
On Tuesday, 3 September 2013 at 15:55:48 UTC, gedaiu wrote: I belive the fails are from the writeln. I made a commit where i removed them. Please update the code thanks Bogdan On Tuesday, 3 September 2013 at 15:49:44 UTC, Batuhan Göksu wrote: On Tuesday, 3 September 2013 at 15:23:36 UTC,

Re: D simple web server

2013-09-03 Thread gedaiu
On Tuesday, 3 September 2013 at 18:49:25 UTC, Batuhan Göksu wrote: On Tuesday, 3 September 2013 at 15:55:48 UTC, gedaiu wrote: I belive the fails are from the writeln. I made a commit where i removed them. Please update the code thanks Bogdan On Tuesday, 3 September 2013 at 15:49:44 UTC,

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); }