aboutsummaryrefslogtreecommitdiff
path: root/HTTPFileReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'HTTPFileReader.cpp')
-rw-r--r--HTTPFileReader.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/HTTPFileReader.cpp b/HTTPFileReader.cpp
index d7f5dd4..191e212 100644
--- a/HTTPFileReader.cpp
+++ b/HTTPFileReader.cpp
@@ -2,10 +2,10 @@
#include "HTTPFileReader.h"
-HTTPFileReader HTTPFileReader::instance(protocol);
+using namespace std;
-void HTTPFileReader::open(const std::string url) {
- _res = cpr::Get(cpr::Url{url});
+void HTTPFileReader::open() {
+ _res = cpr::Get(cpr::Url{this->url});
}
void HTTPFileReader::close() { }
@@ -14,13 +14,3 @@ const std::string HTTPFileReader::read() {
return _res.text.data();
}
-HTTPFileReader::~HTTPFileReader() {
- this->close();
-}
-
-HTTPFileReader * HTTPFileReader::clone() const {
- return new HTTPFileReader(this);
-}
-
-HTTPFileReader::HTTPFileReader(const HTTPFileReader *) : FileReader() { }
-