Representation of a curl easy handle pointer and its operations. More...
#include <libcurl.hpp>
Public Member Functions | |
| CurlHandle (LibCurl::UniqueHandlePtr handle, std::string source_file, std::string source_line) | |
| Construct a new curl handle.  More... | |
| CurlHandle (CurlHandle const &)=delete | |
| CurlHandle support is not movable or copyable.  | |
| CurlHandle & | operator= (CurlHandle const &)=delete | 
| CurlHandle (CurlHandle &&o)=delete | |
| CurlHandle & | operator= (CurlHandle &&o)=delete | 
| CURL * | handle () noexcept | 
| Get the underlying curl easy handle pointer.  | |
| template<typename VAL > | |
| void | setopt (CURLoption option, VAL value) | 
| Set option for the curl handle.  More... | |
| void | perform () | 
| Perform a blocking network transfer using previously set options.  More... | |
| template<typename OUTPUT > | |
| void | getinfo (CURLINFO info, OUTPUT *output) | 
| Extract information from a curl handle.  More... | |
Representation of a curl easy handle pointer and its operations.
An instance is given a LibCurl::UniqueHandlePtr on creation, which is later retained on destruction. 
Definition at line 91 of file libcurl.hpp.
| kvikio::CurlHandle::CurlHandle | ( | LibCurl::UniqueHandlePtr | handle, | 
| std::string | source_file, | ||
| std::string | source_line | ||
| ) | 
Construct a new curl handle.
Typically, do not call this directly instead use the create_curl_handle() macro.
| handle | An unused curl easy handle pointer, which is retained on destruction. | 
| source_file | Path of source file of the caller (for error messages). | 
| source_line | Line of source file of the caller (for error messages). | 
      
  | 
  inline | 
Extract information from a curl handle.
See https://curl.se/libcurl/c/curl_easy_getinfo.html for available options.
| OUTPUT | The type of the output. | 
| output | The output, which is used as-is: curl_easy_getinfo(..., output).  | 
Definition at line 158 of file libcurl.hpp.
| void kvikio::CurlHandle::perform | ( | ) | 
Perform a blocking network transfer using previously set options.
      
  | 
  inline | 
Set option for the curl handle.
See https://curl.se/libcurl/c/curl_easy_setopt.html for available options.
| VAL | The type of the value. | 
| option | The curl option to set. | 
Definition at line 131 of file libcurl.hpp.