#pragma once #include #include "File.h" class HTTPFile : File { protected: virtual void open(const std::string url); public: virtual void close(); virtual const std::string read(); public: virtual ~HTTPFile(); private: HTTPFile(const HTTPFile *); virtual HTTPFile * clone() const; private: using File::File; constexpr static const std::string protocol = "https://"; static HTTPFile instance; private: cpr::Response _res; };