Open superwills opened 6 months ago
See also this softwareengineering.stackexchange answer on exceptions being considered an antipattern
I rewrote the HTTP request. https://github.com/Nevermore1994/http-request
In this repo,It sounds like all the ideas you mentioned have already been implemented.
By the way, auto is quite beneficial for C++ development. Using auto extensively does not increase the cognitive load for developers; on the contrary, it can significantly reduce the burden on both developers and the compiler.
Your library seems very promising, but I thought I would let you know a few ideas I had while looking at it:
auto
in the code. I mean, in this case,int
is shorter ;) The general guideline I've heard is to useauto
where it "increases readability", very subjective :)memcpy
for passing around some of the data?asyncSend
that accepts a lambda onComplete handler (something likestd::function<void (Response)>
)