Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RestClient::Response reassignment is null #182

Open
jmdaemon opened this issue Aug 23, 2022 · 0 comments
Open

RestClient::Response reassignment is null #182

jmdaemon opened this issue Aug 23, 2022 · 0 comments

Comments

@jmdaemon
Copy link

Example Code

// 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; // Nothing

auto actual = con->get(query); // This works
std::cout << actual.body << std::endl;

Expected Behavior

This reassignment should "just work" as intended.

@jmdaemon jmdaemon changed the title RestClient::Response reassignment is still null. RestClient::Response reassignment is still null Aug 23, 2022
@jmdaemon jmdaemon changed the title RestClient::Response reassignment is still null RestClient::Response reassignment is null Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant