31 return std::ranges::lexicographical_compare(
left,
right, {}, ToLower, ToLower);
39using HttpHeaders = std::map<std::string, std::string, HeaderNameLess>;
84 void RunCompletions();
87 std::unique_ptr<Requests> _requests;
Runs HTTP requests off the game thread and their completions on it.
HttpClient(const HttpClient &)=delete
HttpClient & operator=(const HttpClient &)=delete
One-shot delays and repeating timers, run on the game thread.
Owns one registration and releases it on destruction.
std::map< std::string, std::string, HeaderNameLess > HttpHeaders
static std::string ReadFile(const std::filesystem::path &path)
std::function< void(const HttpResult &)> HttpCompletion
@ Send
point the client at AddonDecision::Id and wait for its reconnect
void AddAuth(std::string_view header, std::string_view scheme, std::string_view key)