No description
3d41d4561d
Renamed http utilities by appending ...AndBlock() to make it obvious that they are blocking (synchronous) calls. Async I/O is coming in subsequent CLs. Replaced a bunch of "const char*" with "const std::string&" in function prototypes. Also removed extra overloads for http_utils functions in preparation for adding asynchronous API which would bloat the overloads even more. The original overloads were to provide the ability to omit some less-commonly-used parameters, but that would eventually make the API harder to choose from since the number of overloads will get out of hand. Swept the code to remove unnecessary calls to std::string::c_str() and added omitted parameters in calls to http_utils functions. BUG=None TEST=FEATURES=test emerge-link libchromeos peerd privetd feedback metrics buffet CQ-DEPEND=CL:*191319 Change-Id: I9c1721cd2179ba3b389dd94ef181370eec98ed2e Reviewed-on: https://chromium-review.googlesource.com/239251 Tested-by: Alex Vakulenko <avakulenko@chromium.org> Reviewed-by: Vitaly Buka <vitalybuka@chromium.org> Reviewed-by: Christopher Wiley <wiley@chromium.org> Commit-Queue: Alex Vakulenko <avakulenko@chromium.org> |
||
---|---|---|
metrics |