72 std::string _hostname;
73 std::string _user_agent;
75 std::map<std::string, std::string> _query;
Portable HTTPS GET client with zero external dependencies.
void add_query_pair(const std::string &k, const std::string &v)
Add a query pair.
void set_hostname(const std::string &hostname)
Set the remote hostname (without https:// prefix)
HttpsClient(const HttpsClient &)=delete
HttpsClient & operator=(const HttpsClient &)=delete
std::string query_string()
void set_user_agent(const std::string &user_agent)
Set the User-Agent header.
Response get()
Perform HTTPS GET request to configured endpoint.
void set_path(const std::string &path)
Set the API path on the remote server.
Result of an HTTPS GET request.
std::string body
Response body as string.
int status_code
HTTP status code (e.g., 200, 404)
std::string status_message
HTTP status message (e.g., "OK")