You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Setup
std::string url = ""; // your url here
std::string query = "/get"; // your endpoint
RestClient::Connection* con = new RestClient::Connection(url);
// Testing
RestClient::Response res = new RestClient::Response();
res = con->get(query); // This reassignment does not work, res is still null
std::cout << res.body << std::endl; // Nothingauto actual = con->get(query); // This works
std::cout << actual.body << std::endl;
Expected Behavior
This reassignment should "just work" as intended.
The text was updated successfully, but these errors were encountered:
jmdaemon
changed the title
RestClient::Response reassignment is still null.
RestClient::Response reassignment is still null
Aug 23, 2022
jmdaemon
changed the title
RestClient::Response reassignment is still null
RestClient::Response reassignment is null
Aug 23, 2022
Example Code
Expected Behavior
This reassignment should "just work" as intended.
The text was updated successfully, but these errors were encountered: