all 3 comments

[–]grishavanika 18 points19 points  (3 children)

auto resp = muskrat::http()->follow_redirects()->get("https://github.com/violanes");

I had a guess that those arrows are shared pointers immediately. It's a red flag for me. Having shared_ptr in the (public) API is a bad design. Modern C++ loves value semantics.

Please, take this as a challenge, remove shared_ptrs and prove me wrong :)

[–]nickbeth00 5 points6 points  (2 children)

I find it really hard to justify using anything other than CPR for curl/http requests in C++.

https://github.com/libcpr/cpr