Add get_curl_easy_handle().

This commit is contained in:
tastytea 2020-01-06 15:33:23 +01:00
parent 5d90fa97f1
commit f195c5bcef
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 15 additions and 0 deletions

View File

@ -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.
*