20#ifndef ORES_COMPUTE_WRAPPER_NET_HTTP_CLIENT_HPP
21#define ORES_COMPUTE_WRAPPER_NET_HTTP_CLIENT_HPP
26namespace ores::compute::wrapper::net {
45 static void download(
const std::string& url,
46 const std::filesystem::path& dest);
55 static void upload(
const std::string& url,
56 const std::filesystem::path&
src);
68 static url_parts parse_url(
const std::string& url);
Synchronous HTTP client for compute grid file transfers.
Definition http_client.hpp:36
static void upload(const std::string &url, const std::filesystem::path &src)
Uploads a local file to a remote URL via HTTP PUT.
Definition http_client.cpp:96
static void download(const std::string &url, const std::filesystem::path &dest)
Downloads a remote resource to a local file via HTTP GET.
Definition http_client.cpp:56