You can actually set timeouts using the get function by providing the HTTP instance as a second parameter to get() e.g.:

auto client = HTTP();
client.dataTimeout = dur!"seconds"(100000);
auto data = get!(HTTP,ubyte)("www.dlang.org", client);

/Jonas

Good to know, thanks.

I used the chance to add progress output and gathered
the data in an appender rather than doing array cat.

Reply via email to