[PATCH] D112751: [llvm] [Support] Add HTTP Client Support library.

Noah Shutty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 29 12:02:56 PDT 2021


noajshu updated this revision to Diff 383450.
noajshu added a reviewer: labath.
noajshu added a comment.

Refactor to three primary parent classes `HTTPClient, HTTPRequest, HTTPResponseHandler`.
This is a more straightforward design that presents a simpler usage pattern. E.g., we can do this:

  Expected<HTTPResponseBuffer> ResponseOrErr = Client.get("http://example.com");
  if (Error Err = ResponseOrErr)
      return Err;
  outs() << ResponseOrErr->Body;


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112751/new/

https://reviews.llvm.org/D112751

Files:
  llvm/include/llvm/Support/HTTPClient.h
  llvm/lib/Support/CMakeLists.txt
  llvm/lib/Support/HTTPClient.cpp
  llvm/unittests/Support/CMakeLists.txt
  llvm/unittests/Support/HTTPClient.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112751.383450.patch
Type: text/x-patch
Size: 11808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211029/5cfa9a94/attachment.bin>


More information about the llvm-commits mailing list