blob: 191e212574dc533b0fc256e7510cf9a6fd2c1556 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <cpr/cpr.h>
#include "HTTPFileReader.h"
using namespace std;
void HTTPFileReader::open() {
_res = cpr::Get(cpr::Url{this->url});
}
void HTTPFileReader::close() { }
const std::string HTTPFileReader::read() {
return _res.text.data();
}
|