5#ifndef FORESTHUB_CORE_HTTP_CLIENT_HPP
6#define FORESTHUB_CORE_HTTP_CLIENT_HPP
21 std::map<std::string, std::string>
headers;
29 using Headers = std::map<std::string, std::string>;
42 virtual HttpResponse Post(
const std::string& url,
const Headers& headers,
const std::string& body) = 0;
46 virtual void Delay(
unsigned long ms) = 0;
Abstract interface for HTTP operations.
Definition http_client.hpp:25
virtual HttpResponse Post(const std::string &url, const Headers &headers, const std::string &body)=0
Perform a POST request with a raw body.
virtual void Delay(unsigned long ms)=0
Delay execution for retry logic.
virtual HttpResponse Get(const std::string &url, const Headers &headers)=0
Perform a GET request.
Core abstractions: requests, responses, tools, input types, and provider interface.
Top-level namespace for the ForestHub SDK.
Simple HTTP response container.
Definition http_client.hpp:18
std::map< std::string, std::string > headers
Response headers.
Definition http_client.hpp:21
int status_code
HTTP status code (e.g., 200, 404, 500).
Definition http_client.hpp:19
std::string body
Response body (usually JSON).
Definition http_client.hpp:20