Skip to content

Class restincurl::Request

ClassList > restincurl > Request

Public Types

Type Name
typedef curl_slist * headers_t
typedef std::unique_ptr< Request > ptr_t

Public Functions

Type Name
void AddFileAsMimeData (const std::string & path, const std::string & name, const std::string & remoteName, const std::string & mimeType)
void Complete (CURLcode cc, const CURLMSG &)
void Execute ()
EasyHandle & GetEasyHandle () noexcept
headers_t & GetHeaders ()
RequestType GetRequestType () noexcept
FILE * GetSourceFp ()
void InitMime ()
void OpenSourceFile (const std::string & path)
void Prepare (const RequestType rq, completion_fn_t completion)
Request ()
Request (EasyHandle::ptr_t && eh)
void SetDefaultInHandler (std::unique_ptr< DataHandlerBase > ptr)
void SetDefaultOutHandler (std::unique_ptr< DataHandlerBase > ptr)
std::string & getDefaultInBuffer ()
~Request ()

Public Types Documentation

typedef headers_t

using restincurl::Request::headers_t =  curl_slist *;

typedef ptr_t

using restincurl::Request::ptr_t =  std::unique_ptr<Request>;

Public Functions Documentation

function AddFileAsMimeData

inline void restincurl::Request::AddFileAsMimeData (
    const std::string & path,
    const std::string & name,
    const std::string & remoteName,
    const std::string & mimeType
) 

function Complete

inline void restincurl::Request::Complete (
    CURLcode cc,
    const CURLMSG &
) 

function Execute

inline void restincurl::Request::Execute () 

function GetEasyHandle

inline EasyHandle & restincurl::Request::GetEasyHandle () noexcept

function GetHeaders

inline headers_t & restincurl::Request::GetHeaders () 

function GetRequestType

inline RequestType restincurl::Request::GetRequestType () noexcept

function GetSourceFp

inline FILE * restincurl::Request::GetSourceFp () 

function InitMime

inline void restincurl::Request::InitMime () 

function OpenSourceFile

inline void restincurl::Request::OpenSourceFile (
    const std::string & path
) 

function Prepare

inline void restincurl::Request::Prepare (
    const RequestType rq,
    completion_fn_t completion
) 

function Request [1/2]

inline restincurl::Request::Request () 

function Request [2/2]

inline restincurl::Request::Request (
    EasyHandle::ptr_t && eh
) 

function SetDefaultInHandler

inline void restincurl::Request::SetDefaultInHandler (
    std::unique_ptr< DataHandlerBase > ptr
) 

function SetDefaultOutHandler

inline void restincurl::Request::SetDefaultOutHandler (
    std::unique_ptr< DataHandlerBase > ptr
) 

function getDefaultInBuffer

inline std::string & restincurl::Request::getDefaultInBuffer () 

function ~Request

inline restincurl::Request::~Request () 


The documentation for this class was generated from the following file SpiceQL/include/restincurl.h