Public Member Functions | List of all members
kvikio::detail::CurlUrlHandle Class Reference

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
 
CurlUrlHandleoperator= (CurlUrlHandle const &)=delete
 
 CurlUrlHandle (CurlUrlHandle &&other) noexcept
 
CurlUrlHandleoperator= (CurlUrlHandle &&other) noexcept
 
CURLU * get () const
 Get the underlying libcurl URL handle. More...
 

Detailed Description

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.

Definition at line 31 of file url.hpp.

Constructor & Destructor Documentation

◆ CurlUrlHandle()

kvikio::detail::CurlUrlHandle::CurlUrlHandle ( )

Create a new libcurl URL handle.

Exceptions
std::runtime_errorif libcurl cannot allocate the handle (usually due to out of memory)

Member Function Documentation

◆ get()

CURLU* kvikio::detail::CurlUrlHandle::get ( ) const

Get the underlying libcurl URL handle.

Returns
Pointer to the underlying libcurl URL handle
Note
The returned pointer should not be freed manually as it is managed by this class

The documentation for this class was generated from the following file: