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
  1. import vibe.vibe;
  2.  
  3. void main()
  4. {
  5. listenHTTP(new HTTPServerSettings, &handleRequest);
  6. lowerPrivileges();
  7. runEventLoop();
  8. }
  9.  
  10. void handleRequest(HTTPServerRequest req, HTTPServerResponse res)
  11. {
  12. res.writeBody("Hello, World!");
  13. }