dget - getting code from github

Martin Nowak dawg at dawgfoto.de
Tue May 29 06:44:13 PDT 2012


> 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.


More information about the Digitalmars-d mailing list