1 | #include "cpr/curlmultiholder.h" |
---|---|
2 | |
3 | #include <cassert> |
4 | |
5 | namespace cpr { |
6 | |
7 | CurlMultiHolder::CurlMultiHolder() : handle{curl_multi_init()} { |
8 | assert(handle); |
9 | } |
10 | |
11 | CurlMultiHolder::~CurlMultiHolder() { |
12 | curl_multi_cleanup(multi_handle: handle); |
13 | } |
14 | |
15 | } // namespace cpr |