1 | #ifndef CPR_PAYLOAD_H |
---|---|
2 | #define CPR_PAYLOAD_H |
3 | |
4 | #include <initializer_list> |
5 | |
6 | #include "cpr/curl_container.h" |
7 | |
8 | |
9 | namespace cpr { |
10 | class Payload : public CurlContainer<Pair> { |
11 | public: |
12 | template <class It> |
13 | Payload(const It begin, const It end) { |
14 | for (It pair = begin; pair != end; ++pair) { |
15 | Add(*pair); |
16 | } |
17 | } |
18 | Payload(const std::initializer_list<Pair>& pairs); |
19 | }; |
20 | |
21 | } // namespace cpr |
22 | |
23 | #endif |
24 |