This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module echo_server.app; | |
import during; | |
import mempooled.fixed; | |
import core.stdc.stdio; | |
import core.stdc.stdlib; | |
import core.sys.linux.fcntl; | |
import core.sys.linux.errno; | |
import core.sys.linux.netinet.tcp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wed Apr 18 17:29:54 UTC 2018 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env dub | |
/+ dub.sdl: | |
name "pgblock" | |
dependency "dpq2" version="~>1.0.0-alpha.6" | |
dependency "vibe-d-postgresql" version="~>1.0.0-alpha.2" | |
dependency "vibe-d:web" version="0.8.2" | |
dependency "vibe-d:tls" version="0.8.2" | |
#subConfiguration "vibe-d:tls" "openssl-1.1" | |
+/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env dub | |
/+ dub.sdl: | |
name "urlrouter_test" | |
dependency "vibe-d:web" version="~>0.8.2" | |
versions "VibeNoSSL" | |
+/ | |
import core.memory; | |
import vibe.core.core; | |
import vibe.core.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vibe.d; | |
shared static this() | |
{ | |
auto settings = new HTTPServerSettings; | |
settings.port = 8080; | |
settings.bindAddresses = ["::1", "127.0.0.1"]; | |
auto restSettings = new RestInterfaceSettings(); | |
restSettings.baseURL = URL("/api/v1"); |