Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
model_download.hpp File Reference
#include <cstdint>
#include <filesystem>
#include <functional>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  pulp::runtime::DownloadProgress
struct  pulp::runtime::HttpHeader
struct  pulp::runtime::DownloadRequest
struct  pulp::runtime::DownloadResult
struct  pulp::runtime::ResolvedRedirect
 A redirect Location resolved against the request it answered. More...

Namespaces

namespace  pulp
namespace  pulp::runtime

Typedefs

using pulp::runtime::DownloadProgressFn = std::function<bool(const DownloadProgress&)>
 Progress callback. Return false to cancel the in-flight download.

Functions

int pulp::runtime::download_connect_timeout_seconds (int request_timeout_seconds)
 Connect-phase timeout (seconds) the downloader applies for a given request timeout_seconds.
ResolvedRedirect pulp::runtime::resolve_redirect (const std::string &current_scheme_host_port, const std::string &current_path, const std::string &location)
 Resolve an absolute, host-absolute, or path-relative redirect location against the current origin + path.
DownloadResult pulp::runtime::download_file (const DownloadRequest &request, const DownloadProgressFn &on_progress={}, const CancelToken *cancel=nullptr)
 Blocking streaming download.