digitalmars.D - Web servers in D
- Gor Gyolchanyan <gor.f.gyolchanyan gmail.com> May 14 2012
- simendsjo <simendsjo gmail.com> May 14 2012
- Gor Gyolchanyan <gor.f.gyolchanyan gmail.com> May 14 2012
- "Andrea Fontana" <nospam example.com> May 14 2012
- "Adam D. Ruppe" <destructionator gmail.com> May 14 2012
- "David Nadlinger" <see klickverbot.at> May 14 2012
--f46d0401fb13d2486904bfff3755 Content-Type: text/plain; charset=UTF-8 Hi! I want to write a web server in D and I wonder what is the best library to use for it. -- Bye, Gor Gyolchanyan. --f46d0401fb13d2486904bfff3755 Content-Type: text/html; charset=UTF-8 Hi!<div><br></div><div>I want to write a web server in D and I wonder what is the best library to use for it.<br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br> </div> --f46d0401fb13d2486904bfff3755--
May 14 2012
On Mon, 14 May 2012 15:39:40 +0200, Gor Gyolchanyan <gor.f.gyolchanyan gmail.com> wrote:Hi! I want to write a web server in D and I wonder what is the best library to use for it.
https://github.com/rejectedsoftware/vibe.d
May 14 2012
--f46d040714c53bd83804bfff8ed8 Content-Type: text/plain; charset=UTF-8 Thanks for the reply! This isn't a library. This is a weird framework, which needs me to run my sources through some executables. I need a good library with no garbage. Pure D code, that I can merge with my sources. On Mon, May 14, 2012 at 5:56 PM, simendsjo <simendsjo gmail.com> wrote:On Mon, 14 May 2012 15:39:40 +0200, Gor Gyolchanyan < gor.f.gyolchanyan gmail.com> wrote: Hi!I want to write a web server in D and I wonder what is the best library to use for it.
-- Bye, Gor Gyolchanyan. --f46d040714c53bd83804bfff8ed8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div>Thanks for the reply!</div>This isn't a library. This is a weird f= ramework, which needs me to run my sources through some executables.<div>I = need a good library with no garbage. Pure D code, that I can merge with my = sources.<br> <div><br><br><div class=3D"gmail_quote">On Mon, May 14, 2012 at 5:56 PM, si= mendsjo <span dir=3D"ltr"><<a href=3D"mailto:simendsjo gmail.com" target= =3D"_blank">simendsjo gmail.com</a>></span> wrote:<br><blockquote class= =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd= ing-left:1ex"> <div class=3D"im">On Mon, 14 May 2012 15:39:40 +0200, Gor Gyolchanyan <<= a href=3D"mailto:gor.f.gyolchanyan gmail.com" target=3D"_blank">gor.f.gyolc= hanyan gmail.com</a>> wrote:<br> <br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> Hi!<br> <br> I want to write a web server in D and I wonder what is the best library to<= br> use for it.<br> <br> </blockquote> <br> </div><a href=3D"https://github.com/rejectedsoftware/vibe.d" target=3D"_bla= nk">https://github.com/<u></u>rejectedsoftware/vibe.d</a><br> </blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>Bye,<br>Gor = Gyolchanyan.<br> </div></div> --f46d040714c53bd83804bfff8ed8--
May 14 2012
web.d by Adam Ruppe? http://arsdnet.net/web.d/ You just need "web.d" file you can find on github. On Monday, 14 May 2012 at 14:04:01 UTC, Gor Gyolchanyan wrote:Thanks for the reply! This isn't a library. This is a weird framework, which needs me to run my sources through some executables. I need a good library with no garbage. Pure D code, that I can merge with my sources. On Mon, May 14, 2012 at 5:56 PM, simendsjo <simendsjo gmail.com> wrote:On Mon, 14 May 2012 15:39:40 +0200, Gor Gyolchanyan < gor.f.gyolchanyan gmail.com> wrote: Hi!I want to write a web server in D and I wonder what is the best library to use for it.
May 14 2012
On Monday, 14 May 2012 at 14:23:47 UTC, Andrea Fontana wrote:You just need "web.d" file you can find on github.
cgi.d is the one for a basic server. https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff If you use cgi.d alone, you can use the little -version=embedded_httpd built in webserver to get started. == import arsd.cgi; void requestHandler(Cgi cgi) { cgi.write("hello, world!"); } mixin GenericMain!requestHandler; == dmd myapp.d arsd/cgi.d -version=embedded_httpd ./myapp then go to http://localhost:8080/ It doesn't have great performance under heavy load though!
May 14 2012
On Monday, 14 May 2012 at 14:04:01 UTC, Gor Gyolchanyan wrote:Thanks for the reply! This isn't a library. This is a weird framework, which needs me to run my sources through some executables. I need a good library with no garbage. Pure D code, that I can merge with my sources.
You might want to have a look at it again – Vibe.d just provides a way to quickly start your application using a wrapper script for RDMD which also automatically links in libevent, etc. If you don't like that, you can always choose to build your project in another way. David
May 14 2012









simendsjo <simendsjo gmail.com> 