Newer
Older
dub_jkp / examples / vibed-main / source / app.d
@James Clarke James Clarke on 22 May 2014 229 bytes Ensure all files end with a newline
import vibe.vibe;

void main()
{
	listenHTTP(new HTTPServerSettings, &handleRequest);
	lowerPrivileges();
	runEventLoop();
}

void handleRequest(HTTPServerRequest req, HTTPServerResponse res)
{
	res.writeBody("Hello, World!");
}