Ardour  9.0-pre0-582-g084a23a80d
ArdourCurl::HttpGet Class Reference

#include <ardour_http.h>

Classes

struct  HeaderInfo
 
struct  MemStruct
 

Public Member Functions

 HttpGet (bool persist=false, bool ssl=true)
 
 ~HttpGet ()
 
char * get (const char *url, bool with_error_logging=false)
 
std::string get (const std::string &url, bool with_error_logging=false)
 
char * data () const
 
size_t data_size () const
 
long int status () const
 
std::map< std::string, std::string > header () const
 
char * escape (const char *s, int l) const
 
char * unescape (const char *s, int l, int *o) const
 
void free (void *p) const
 
std::string error () const
 
CURL * curl () const
 

Static Public Member Functions

static void setup_certificate_paths ()
 
static void ca_setopt (CURL *)
 

Private Attributes

CURL * _curl
 
bool persist
 
long int _status
 
long int _result
 
char error_buffer [CURL_ERROR_SIZE]
 
struct MemStruct mem
 
struct HeaderInfo nfo
 

Static Private Attributes

static const char * ca_path
 
static const char * ca_info
 

Detailed Description

Definition at line 27 of file ardour_http.h.

Constructor & Destructor Documentation

◆ HttpGet()

ArdourCurl::HttpGet::HttpGet ( bool  persist = false,
bool  ssl = true 
)

◆ ~HttpGet()

ArdourCurl::HttpGet::~HttpGet ( )

Member Function Documentation

◆ ca_setopt()

static void ArdourCurl::HttpGet::ca_setopt ( CURL *  )
static

◆ curl()

CURL* ArdourCurl::HttpGet::curl ( ) const
inline

Definition at line 72 of file ardour_http.h.

◆ data()

char* ArdourCurl::HttpGet::data ( ) const
inline

Definition at line 49 of file ardour_http.h.

◆ data_size()

size_t ArdourCurl::HttpGet::data_size ( ) const
inline

Definition at line 50 of file ardour_http.h.

◆ error()

std::string ArdourCurl::HttpGet::error ( ) const

◆ escape()

char* ArdourCurl::HttpGet::escape ( const char *  s,
int  l 
) const
inline

Definition at line 56 of file ardour_http.h.

◆ free()

void ArdourCurl::HttpGet::free ( void *  p) const
inline

Definition at line 66 of file ardour_http.h.

◆ get() [1/2]

char* ArdourCurl::HttpGet::get ( const char *  url,
bool  with_error_logging = false 
)

◆ get() [2/2]

std::string ArdourCurl::HttpGet::get ( const std::string &  url,
bool  with_error_logging = false 
)
inline

Definition at line 44 of file ardour_http.h.

◆ header()

std::map<std::string, std::string> ArdourCurl::HttpGet::header ( ) const
inline

Definition at line 54 of file ardour_http.h.

◆ setup_certificate_paths()

static void ArdourCurl::HttpGet::setup_certificate_paths ( )
static

◆ status()

long int ArdourCurl::HttpGet::status ( ) const
inline

Definition at line 52 of file ardour_http.h.

◆ unescape()

char* ArdourCurl::HttpGet::unescape ( const char *  s,
int  l,
int *  o 
) const
inline

Definition at line 60 of file ardour_http.h.

Member Data Documentation

◆ _curl

CURL* ArdourCurl::HttpGet::_curl
private

Definition at line 80 of file ardour_http.h.

◆ _result

long int ArdourCurl::HttpGet::_result
private

Definition at line 84 of file ardour_http.h.

◆ _status

long int ArdourCurl::HttpGet::_status
private

Definition at line 83 of file ardour_http.h.

◆ ca_info

const char* ArdourCurl::HttpGet::ca_info
staticprivate

Definition at line 92 of file ardour_http.h.

◆ ca_path

const char* ArdourCurl::HttpGet::ca_path
staticprivate

Definition at line 91 of file ardour_http.h.

◆ error_buffer

char ArdourCurl::HttpGet::error_buffer[CURL_ERROR_SIZE]
private

Definition at line 86 of file ardour_http.h.

◆ mem

struct MemStruct ArdourCurl::HttpGet::mem
private

Definition at line 86 of file ardour_http.h.

◆ nfo

struct HeaderInfo ArdourCurl::HttpGet::nfo
private

Definition at line 86 of file ardour_http.h.

◆ persist

bool ArdourCurl::HttpGet::persist
private

Definition at line 81 of file ardour_http.h.


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