#include <HttpClient.hpp>
Static Public Member Functions | |
| static HttpResponse | get (const std::string &url, const std::map< std::string, std::string > &headers={}, long timeoutSeconds=20) |
| static HttpResponse | post (const std::string &url, const std::string &body, const std::map< std::string, std::string > &headers={}, long timeoutSeconds=20) |
| static std::string | urlEncode (const std::string &value) |
Static Private Member Functions | |
| static void | ensureCurlGlobalInit () |
| static HttpResponse | perform (const std::string &url, const char *method, const std::string &requestBody, const std::map< std::string, std::string > &headers, long timeoutSeconds) |
Definition at line 32 of file HttpClient.hpp.
|
staticprivate |
Definition at line 48 of file HttpClient.cpp.
Referenced by perform(), and urlEncode().
|
static |
Definition at line 54 of file HttpClient.cpp.
References perform().
Referenced by HibpProvider::checkEmail(), LeakCheckProvider::checkEmail(), and HibpPasswordProvider::checkPassword().
|
staticprivate |
Definition at line 71 of file HttpClient.cpp.
References HttpResponse::body, ensureCurlGlobalInit(), HttpResponse::error, and HttpResponse::status.
|
static |
Definition at line 62 of file HttpClient.cpp.
References perform().
|
static |
Definition at line 150 of file HttpClient.cpp.
References ensureCurlGlobalInit().
Referenced by HibpProvider::checkEmail(), and LeakCheckProvider::checkEmail().