libzypp  17.25.1
CurlHelper.h File Reference
#include <curl/curl.h>
#include <zypp/Url.h>
#include <zypp/media/TransferSettings.h>
Include dependency graph for CurlHelper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 internal
 
 internal::env
 

Macros

#define CONNECT_TIMEOUT   60
 
#define TRANSFER_TIMEOUT_MAX   60 * 60
 
#define DETECT_DIR_INDEX   0
 
#define EXPLICITLY_NO_PROXY   "_none_"
 
#define CURLVERSION_AT_LEAST(M, N, O)   LIBCURL_VERSION_NUM >= ((((M)<<8)+(N))<<8)+(O)
 

Functions

int internal::env::getZYPP_MEDIA_CURL_IPRESOLVE ()
 
int internal::env::ZYPP_MEDIA_CURL_IPRESOLVE ()
 
void internal::globalInitCurlOnce ()
 
int internal::log_curl (CURL *curl, curl_infotype info, char *ptr, size_t len, void *max_lvl)
 
size_t internal::log_redirects_curl (char *ptr, size_t size, size_t nmemb, void *userdata)
 
void internal::fillSettingsFromUrl (const Url &url, media::TransferSettings &s)
 Fills the settings structure using options passed on the url for example ?timeout=x&proxy=foo. More...
 
void internal::fillSettingsSystemProxy (const Url &url, media::TransferSettings &s)
 Reads the system proxy configuration and fills the settings structure proxy information. More...
 
const char * internal::anonymousIdHeader ()
 initialized only once, this gets the anonymous id from the target, which we pass in the http header More...
 
const char * internal::distributionFlavorHeader ()
 initialized only once, this gets the distribution flavor from the target, which we pass in the http header More...
 
const char * internal::agentString ()
 initialized only once, this gets the agent string which also includes the curl version More...
 
void internal::curlEscape (std::string &str_r, const char char_r, const std::string &escaped_r)
 
std::string internal::curlEscapedPath (std::string path_r)
 
std::string internal::curlUnEscape (std::string text_r)
 
Url internal::clearQueryString (const Url &url)
 
zypp::Url internal::propagateQueryParams (zypp::Url url_r, const zypp::Url &template_r)
 

Macro Definition Documentation

◆ CONNECT_TIMEOUT

#define CONNECT_TIMEOUT   60

Definition at line 21 of file CurlHelper.h.

◆ TRANSFER_TIMEOUT_MAX

#define TRANSFER_TIMEOUT_MAX   60 * 60

Definition at line 22 of file CurlHelper.h.

◆ DETECT_DIR_INDEX

#define DETECT_DIR_INDEX   0

Definition at line 23 of file CurlHelper.h.

◆ EXPLICITLY_NO_PROXY

#define EXPLICITLY_NO_PROXY   "_none_"

Definition at line 25 of file CurlHelper.h.

◆ CURLVERSION_AT_LEAST

#define CURLVERSION_AT_LEAST (   M,
  N,
 
)    LIBCURL_VERSION_NUM >= ((((M)<<8)+(N))<<8)+(O)

Definition at line 28 of file CurlHelper.h.