Static HTTP/archive utility functions used across the editor.
More...
#include <EditorHttpUtils.h>
|
| static std::string | FetchUrl (const std::string &url) |
| static bool | DownloadFile (const std::string &url, const std::string &localPath, std::atomic< bool > *cancelFlag=nullptr, HttpStatusCallback status=nullptr) |
| static bool | DownloadFileVerified (const std::string &url, const std::string &localPath, const std::string &expectedSha256, std::atomic< bool > *cancelFlag=nullptr, HttpStatusCallback status=nullptr) |
| static std::string | Sha256File (const std::string &path) |
| static bool | ExtractZip (const std::string &zipPath, const std::string &destDir, HttpStatusCallback status=nullptr) |
| static bool | ParseGitHubRelease (const std::string &json, const std::string &assetPattern, std::string &outVersion, std::string &outDownloadUrl) |
Static HTTP/archive utility functions used across the editor.
Centralizes WinHTTP (Windows) / curl (Unix) usage.
◆ FetchUrl()
| std::string DekiEditor::EditorHttpUtils::FetchUrl |
( |
const std::string & | url | ) |
|
|
static |
◆ DownloadFile()
| bool DekiEditor::EditorHttpUtils::DownloadFile |
( |
const std::string & | url, |
|
|
const std::string & | localPath, |
|
|
std::atomic< bool > * | cancelFlag = nullptr, |
|
|
HttpStatusCallback | status = nullptr ) |
|
static |
◆ DownloadFileVerified()
| bool DekiEditor::EditorHttpUtils::DownloadFileVerified |
( |
const std::string & | url, |
|
|
const std::string & | localPath, |
|
|
const std::string & | expectedSha256, |
|
|
std::atomic< bool > * | cancelFlag = nullptr, |
|
|
HttpStatusCallback | status = nullptr ) |
|
static |
◆ Sha256File()
| std::string DekiEditor::EditorHttpUtils::Sha256File |
( |
const std::string & | path | ) |
|
|
static |
◆ ExtractZip()
| bool DekiEditor::EditorHttpUtils::ExtractZip |
( |
const std::string & | zipPath, |
|
|
const std::string & | destDir, |
|
|
HttpStatusCallback | status = nullptr ) |
|
static |
◆ ParseGitHubRelease()
| bool DekiEditor::EditorHttpUtils::ParseGitHubRelease |
( |
const std::string & | json, |
|
|
const std::string & | assetPattern, |
|
|
std::string & | outVersion, |
|
|
std::string & | outDownloadUrl ) |
|
static |
◆ kMaxRedirects
| int DekiEditor::EditorHttpUtils::kMaxRedirects = 10 |
|
staticconstexpr |
The documentation for this class was generated from the following file: