Sorry, the markdown seemed to nuke my code, will try again
import vibe.vibe;
import std.parallelism;
import std.getopt;
import std.stdio;
ushort serverPort = 8080;
int main(string[] args)
{
getopt(args, "port|p", &serverPort);
auto settings = new HTTPServerSettings;
settings.port = serverPort;
listenHTTP(settings, &handleRequest);
return runEventLoop();
}
void handleRequest(HTTPServerRequest req,
HTTPServerResponse res)
{
res.writeBody("Hello World","text/plain");
}