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:
2
module/Vendor/CPR/include/cpr/cookies.h
vendored
2
module/Vendor/CPR/include/cpr/cookies.h
vendored
@@ -46,7 +46,7 @@ class Cookies {
|
||||
const_iterator cbegin() const;
|
||||
const_iterator cend() const;
|
||||
|
||||
private:
|
||||
protected:
|
||||
std::map<std::string, std::string> map_;
|
||||
};
|
||||
|
||||
|
2
module/Vendor/CPR/include/cpr/parameters.h
vendored
2
module/Vendor/CPR/include/cpr/parameters.h
vendored
@@ -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);
|
||||
|
2
module/Vendor/CPR/include/cpr/payload.h
vendored
2
module/Vendor/CPR/include/cpr/payload.h
vendored
@@ -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) {
|
||||
|
2
module/Vendor/CPR/include/cpr/proxies.h
vendored
2
module/Vendor/CPR/include/cpr/proxies.h
vendored
@@ -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
|
||||
|
2
module/Vendor/CPR/include/cpr/response.h
vendored
2
module/Vendor/CPR/include/cpr/response.h
vendored
@@ -18,7 +18,7 @@
|
||||
namespace cpr {
|
||||
|
||||
class Response {
|
||||
private:
|
||||
protected:
|
||||
std::shared_ptr<CurlHolder> curl_{nullptr};
|
||||
|
||||
public:
|
||||
|
Reference in New Issue
Block a user