43 const std::string& app_key,
44 const std::string& app_secret,
45 const std::string& access_token);
53 const std::string& path,
54 const std::optional<std::map<std::string, std::string>>& headers,
55 const std::optional<std::string>& body,
Definition: http_client.hpp:25
HttpClient(const std::string &http_url, const std::string &app_key, const std::string &app_secret, const std::string &access_token)
HttpClient(HttpClient &)=delete
void request(const std::string &method, const std::string &path, const std::optional< std::map< std::string, std::string >> &headers, const std::optional< std::string > &body, AsyncCallback< void *, HttpResult > callback)
struct lb_http_client_t lb_http_client_t
Definition: http_client.hpp:10
Definition: async_result.hpp:7
std::function< void(AsyncResult< Ctx, T >)> AsyncCallback
Definition: async_result.hpp:39
Definition: http_client.hpp:15
const char * response_body
Definition: http_client.hpp:16
HttpResult(const char *response_body)
Definition: http_client.hpp:18