1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-09-19 02:37:18 +02:00

Modify CPR library to be able to access member variables for some types.

This commit is contained in:
Sandu Liviu Catalin
2021-01-28 04:59:14 +02:00
parent cc6778d245
commit 4a75da930b
6 changed files with 16 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ class Cookies {
const_iterator cbegin() const;
const_iterator cend() const;
private:
protected:
std::map<std::string, std::string> map_;
};

View File

@@ -8,6 +8,8 @@
namespace cpr {
class Parameters : public CurlContainer<Parameter> {
protected:
using CurlContainer<Parameter>::containerList_;
public:
Parameters() = default;
Parameters(const std::initializer_list<Parameter>& parameters);

View File

@@ -8,6 +8,8 @@
namespace cpr {
class Payload : public CurlContainer<Pair> {
protected:
using CurlContainer<Pair>::containerList_;
public:
template <class It>
Payload(const It begin, const It end) {

View File

@@ -14,7 +14,7 @@ class Proxies {
bool has(const std::string& protocol) const;
const std::string& operator[](const std::string& protocol);
private:
protected:
std::map<std::string, std::string> hosts_;
};
} // namespace cpr

View File

@@ -18,7 +18,7 @@
namespace cpr {
class Response {
private:
protected:
std::shared_ptr<CurlHolder> curl_{nullptr};
public: