-
-
Save mathieugarcia/2522dd5fdc5f2ec898e56345b314150d to your computer and use it in GitHub Desktop.
HTTPRequest usage example
This file contains 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
MakeHTTPRequest("https://jsonplaceholder.typicode.com/users", | |
[=](std::unique_ptr<char[]> data, size_t len) | |
{ | |
// Parse the data here | |
}, | |
[=](const auto& err) // Error | |
{ | |
// Warn user, log console... | |
})(); // <--- Note the (): we're calling operator()() to execute it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment