This book gives a thorough introduction to web development in D, using vibe.d. While walking through the various topics, it always provides practical step-by-step examples and explains the underlying mechanisms.
Available as e-book and print versions at Packt Publishing
import vibe.vibe; void main() { listenHTTP(":8080", &handleRequest); runApplication(); } void handleRequest(HTTPServerRequest req, HTTPServerResponse res) { if (req.path == "/") res.writeBody("Hello, World!"); }
import vibe.vibe; void main() { listenTCP(7, (conn) { conn.write(conn); }); runApplication(); }
* Still work-in-progress, implemented by the vibedist project.