#include <CurlConfig.h>
Static Public Member Functions | |
static int | parseConfig (CurlConfig &config, const std::string &filename="") |
Parse a curlrc file and store the result in the config structure. | |
static int | setParameter (CurlConfig &config, const std::string &option, const std::string &value) |
Stores the value of the option in the config structure or logs an unknown option. | |
Public Attributes | |
std::string | proxyuserpwd |
Definition at line 16 of file CurlConfig.h.
int zypp::media::CurlConfig::parseConfig | ( | CurlConfig & | config, | |
const std::string & | filename = "" | |||
) | [static] |
Parse a curlrc file and store the result in the config structure.
config | a CurlConfig structure | |
filename | path to the curlrc file. If empty, ~/.curlrc is used. |
Definition at line 24 of file CurlConfig.cc.
References DBG, ISSEP, MIL, setParameter(), zypp::str::trim(), and WAR.
Referenced by zypp::media::MediaCurl::setupEasy().
int zypp::media::CurlConfig::setParameter | ( | CurlConfig & | config, | |
const std::string & | option, | |||
const std::string & | value | |||
) | [static] |
Stores the value of the option in the config structure or logs an unknown option.
Definition at line 169 of file CurlConfig.cc.
References DBG, and proxyuserpwd.
Referenced by parseConfig().
std::string zypp::media::CurlConfig::proxyuserpwd |
Definition at line 39 of file CurlConfig.h.
Referenced by setParameter(), and zypp::media::MediaCurl::setupEasy().