Skip to content

Instantly share code, notes, and snippets.

@zaydek-old
Created July 13, 2017 08:47
Show Gist options
  • Save zaydek-old/6504b1feb1471c7a68dfa6e87b810d12 to your computer and use it in GitHub Desktop.
Save zaydek-old/6504b1feb1471c7a68dfa6e87b810d12 to your computer and use it in GitHub Desktop.
void main()
{
string result;
import std.net.curl;
auto
http = HTTP("https://robinhood.com/404.html");
http.onReceive((ubyte[] data) { result = cast(string) data; return data.length; });
http.perform();
import std.stdio;
writeln(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment