/
toplib
/
OpenATC
Обзор
Документация
Войти
/
toplib
/
OpenATC
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/core/net/HttpClient.h
27 строк
679 B
toplib
Add Whisper STT backend, WavLoader, and submodules; refactor HuggingFace and network clients; update build and ignore files
12 май 2026, 16:24
12 май 2026, 16:24
25894f3
Код
Авторство
О чём код?
#pragma once #include <functional> #include <string> #include <curl/curl.h> namespace Net { struct Response { long status = 0; std::string body; std::vector<std::string> headers; }; using ProgressCallback = std::function<void(size_t current, size_t total)>; class HttpClient { public: HttpClient(); ~HttpClient(); Response get(const std::string& url, const std::vector<std::string>& headers = {}); Response post(const std::string& url, const std::string& body, const std::vector<std::string>& headers = {}); void applyDefaultOptions(); private: CURL* m_curl = nullptr; }; }