Created
July 13, 2017 08:47
-
-
Save zaydek-old/6504b1feb1471c7a68dfa6e87b810d12 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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