iw4x-client/src/Utils/Cache.hpp

16 lines
369 B
C++
Raw Normal View History

2016-11-21 04:50:55 -05:00
namespace Utils
{
class Cache
{
public:
static std::string GetStaticUrl(std::string path);
static std::string GetFile(std::string path, int timeout = 5000, std::string useragent = "IW4x");
2016-11-21 04:50:55 -05:00
2016-11-21 05:09:42 -05:00
private:
static std::mutex CacheMutex;
static const char* Urls[];
static std::string ValidUrl;
static std::string GetUrl(std::string url, std::string path);
2016-11-21 04:50:55 -05:00
};
}