21#ifndef FG_HTTP_CLIENT_HXX
22#define FG_HTTP_CLIENT_HXX
24#include <simgear/io/HTTPClient.hxx>
25#include <simgear/package/Catalog.hxx>
26#include <simgear/structure/subsystem_mgr.hxx>
40 void update(
double)
override;
48 void makeRequest(
const simgear::HTTP::Request_ptr& req);
50 simgear::HTTP::Client*
client() {
return _http.get(); }
51 simgear::HTTP::Client
const*
client()
const {
return _http.get(); }
62 std::unique_ptr<simgear::HTTP::Client> _http;
bool isDefaultCatalogInstalled() const
void makeRequest(const simgear::HTTP::Request_ptr &req)
static FGHTTPClient * getOrCreate()
std::string getDefaultCatalogId() const
void update(double) override
simgear::HTTP::Client const * client() const
simgear::pkg::CatalogRef addDefaultCatalog()
std::string getDefaultCatalogFallbackUrl() const
simgear::HTTP::Client * client()
std::string getDefaultCatalogUrl() const
static const char * staticSubsystemClassId()