Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce onBody callback function in CurlClient
Summary: introduce a onBody callback function in CurlClient so the response value can be checked. Also re-type httpPaths and requestGaps in HQToolClientParams from std::vector<folly::StringPiece> to std::vector<std::string> because 1. there was a bug with a vector of StringPiece. HQToolParamsBuilderFromCmdline takes a list of gflags from the caller to override gflags. It works only in the scope of gflags::FlagSaver. https://fburl.com/code/5bg24j7v. After the constructor function is finished, gflag value will be changed back and so does requestGaps/httpPaths because StringPieces are just pointers to some other allocation not owned by themselves 2. To create a client wrapper to send massive requests to multiple vips and check the return values, we need to create separate and different params for each HQClient instance so we need requestGaps and httpPaths to be a vector of strings. Reviewed By: kvtsoy Differential Revision: D59966312 fbshipit-source-id: 00c0a50691d566d3ffa59a0a7253979e86e63cec
- Loading branch information