/* * clavitor CLI — HTTPS client (BearSSL) */ #ifndef CLV_HTTP_H #define CLV_HTTP_H #include struct clv_response { int status; /* HTTP status code */ char *body; /* response body (malloc'd, caller frees) */ size_t body_len; }; /* Perform HTTPS GET with Bearer auth + optional X-Agent header. * agent_name can be NULL to omit the header. */ int http_get(const char *url, const char *bearer_token, const char *agent_name, struct clv_response *resp); #endif