RAII wrapper for libcurl's URL handle (CURLU) More...
#include <url.hpp>
Public Member Functions | |
| CurlUrlHandle () | |
| Create a new libcurl URL handle. More... | |
| ~CurlUrlHandle () noexcept | |
| Clean up the underlying URL handle. | |
| CurlUrlHandle (CurlUrlHandle const &)=delete | |
| CurlUrlHandle & | operator= (CurlUrlHandle const &)=delete |
| CurlUrlHandle (CurlUrlHandle &&other) noexcept | |
| CurlUrlHandle & | operator= (CurlUrlHandle &&other) noexcept |
| CURLU * | get () const |
| Get the underlying libcurl URL handle. More... | |
RAII wrapper for libcurl's URL handle (CURLU)
This class provides automatic resource management for libcurl URL handles, ensuring proper cleanup when the handle goes out of scope. The class is move-only to prevent accidental sharing of the underlying resource.
| kvikio::detail::CurlUrlHandle::CurlUrlHandle | ( | ) |
Create a new libcurl URL handle.
| std::runtime_error | if libcurl cannot allocate the handle (usually due to out of memory) |
| CURLU* kvikio::detail::CurlUrlHandle::get | ( | ) | const |
Get the underlying libcurl URL handle.