kcurl v0.1.10
Basic C++23 wrapper over libcurl
 
Loading...
Searching...
No Matches
kcurl::Curl Class Reference

Top-level RAII wrapper for curl. Use if libcurl initialization/shutdown is not already handled. More...

#include <kcurl/curl.hpp>

Public Types

enum  Feature : std::uint8_t {
  None = 0 , TLS = 1 << 0 , IPv6 = 1 << 1 , Win32Unicode = 1 << 2 ,
  UnixSockets = 1 << 3 , Http2 = 1 << 4 , Http3 = 1 << 5 , LargeFile = 1 << 6
}
 

Public Member Functions

 Curl (Curl const &)=delete
 
 Curl (Curl &&)=delete
 
Curloperator= (Curl const &)=delete
 
Curloperator= (Curl &&)=delete
 
 Curl (long flags=default_flags())
 
 ~Curl ()
 
auto get_features () const -> Feature
 

Static Public Member Functions

static auto default_flags () -> long
 

Detailed Description

Top-level RAII wrapper for curl. Use if libcurl initialization/shutdown is not already handled.

Member Enumeration Documentation

◆ Feature

enum kcurl::Curl::Feature : std::uint8_t
Enumerator
None 
TLS 
IPv6 
Win32Unicode 
UnixSockets 
Http2 
Http3 
LargeFile 

Constructor & Destructor Documentation

◆ Curl() [1/3]

kcurl::Curl::Curl ( Curl const &  )
delete

◆ Curl() [2/3]

kcurl::Curl::Curl ( Curl &&  )
delete

◆ Curl() [3/3]

kcurl::Curl::Curl ( long  flags = default_flags())
explicit

◆ ~Curl()

kcurl::Curl::~Curl ( )

Member Function Documentation

◆ default_flags()

static auto kcurl::Curl::default_flags ( ) -> long
static

◆ get_features()

auto kcurl::Curl::get_features ( ) const -> Feature

◆ operator=() [1/2]

Curl & kcurl::Curl::operator= ( Curl &&  )
delete

◆ operator=() [2/2]

Curl & kcurl::Curl::operator= ( Curl const &  )
delete

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