vibe-docker/source/app.d
2018-11-27 20:31:20 +01:00

17 lines
352 B
D

import vibe.vibe;
void main()
{
auto settings = new HTTPServerSettings;
settings.port = 8080;
settings.bindAddresses = ["::", "0.0.0.0"];
listenHTTP(settings, &hello);
logInfo("Please open http://127.0.0.1:8080/ in your browser.");
runApplication();
}
void hello(HTTPServerRequest, HTTPServerResponse res)
{
res.writeBody("Hello, World!");
}