On Friday, 18 October 2019 at 09:17:24 UTC, Vino wrote:
On Friday, 18 October 2019 at 09:11:18 UTC, Vino wrote:
[...]
App.d
import vibe.vibe;
import avm.test;
void main()
{
auto settings = new HTTPServerSettings;
settings.port = 8080;
settings.bindAddresses = ["127.0.0.1"];
listenHTTP(settings, &hello);
logInfo("Please open http://127.0.0.1:8080/ in your browser.");
runApplication();
}
void hello(HTTPServerRequest req, HTTPServerResponse res)
{
test t = new avmtest();
res.writeBody(t.getHostname);
}
And now getting the error : Program exited with code -1073741819