D simple web server

Adam D. Ruppe destructionator at gmail.com
Sat Aug 31 09:51:34 PDT 2013


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:
https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/cgi.d

===
void hello(Cgi cgi) { cgi.write("hello"); }
mixin GenericMain!hello;
===

dmd test.d cgi.d -version=embedded_httpd

Then run test and it listens on port 8085 by default, and you can 
change that with a command line argument --port 3000 for example.


More information about the Digitalmars-d-announce mailing list