Open benhj opened 4 years ago
http_read
itself is complete on the experimental
branch and can be used as written above. It uses CURL
though and I'm not sure how ideal this is.. The functionality is only built if the CURL headers and libraries can be found by cmake.
Example usage to download a file (for example) would be something like:
http_read("https://slashdot.org") -> file("/Users/bjones/slashdotTest.html");
The 'return type' is an array of bytes. Above, a file receiver is shown to write the returned bytes directly to a file.
Didn't mean to close :-D
Wondering about networking builtins, e.g.: