[PATCH] D112753: [llvm] [Support] Add CURL HTTP Client.
Noah Shutty via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 8 22:02:04 PST 2021
noajshu added inline comments.
================
Comment at: llvm/include/llvm/Support/HTTPClient.h:83
+ void *Curl = nullptr;
+ Error curlInit();
+ ~HTTPClient();
----------------
Hi @labath, do you think we should follow the [[ https://llvm.org/docs/ProgrammersManual.html#fallible-constructors | style guide recommendation ]] for fallible constructors instead of using `curlInit`? That is, `HTTPClient` would have a private constructor and a `static Expected<HTTPClient> Create()`, which would just run the code inside `curlInit`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112753/new/
https://reviews.llvm.org/D112753
More information about the llvm-commits
mailing list