/*
 * vault1984 CLI — HTTPS client (BearSSL)
 */

#ifndef V84_HTTP_H
#define V84_HTTP_H

#include <stddef.h>

struct v84_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 v84_response *resp);

#endif
