From f195c5bcef69a093b93fa9b1e3f5294bad7c6e14 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 6 Jan 2020 15:33:23 +0100 Subject: [PATCH] Add get_curl_easy_handle(). --- include/curl_wrapper.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/curl_wrapper.hpp b/include/curl_wrapper.hpp index 267de96..01a753e 100644 --- a/include/curl_wrapper.hpp +++ b/include/curl_wrapper.hpp @@ -113,6 +113,21 @@ public: //! Move assignment operator CURLWrapper& operator=(CURLWrapper &&other) noexcept = default; + /*! + * @brief Returns pointer to the CURL easy handle. + * + * You can use this handle to set or modify curl options. For more + * information consult [curl_easy_setopt(3)] + * (https://curl.haxx.se/libcurl/c/curl_easy_setopt.html). + * + * @since 0.1.0 + */ + inline CURL *get_curl_easy_handle() + { + return _connection; + } + +protected: /*! * @brief Make a request. *