17#include <zypp-core/base/String.h>
18#include <zypp-core/base/Logger.h>
19#include <zypp-core/fs/WatchFile>
20#include <zypp-core/base/ReferenceCounted.h>
21#include <zypp-core/base/NonCopyable.h>
22#include <zypp-core/ExternalProgram.h>
23#include <zypp-media/MediaConfig>
29#define CURL_BINARY "/usr/bin/curl"
57 static shared_ptr<Impl> _nullimpl(
new Impl );
62 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
65 {
return new Impl( *
this ); }
72 if ( not val_r.empty() )
73 _headers.push_back( std::move(val_r) );
75 WAR <<
"Discard empty header" << endl;
117 {
_impl->safeAddHeader( val_r ); }
119 {
_impl->safeAddHeader( std::move(val_r) ); }
124 return _impl->_headers;
134 {
return _impl->_useragent; }
138 {
_impl->_username = val_r; }
141 {
_impl->_username = std::move(val_r); }
144 {
return _impl->_username; }
147 {
_impl->_password = val_r; }
150 {
_impl->_password = std::move(val_r); }
153 {
return _impl->_password; }
172 {
_impl->_useproxy = enabled; }
175 {
return _impl->_useproxy; }
179 {
_impl->_proxy = val_r; }
182 {
_impl->_proxy = std::move(val_r); }
185 {
return _impl->_proxy; }
189 {
_impl->_proxy_username = val_r; }
192 {
_impl->_proxy_username = std::move(val_r); }
195 {
return _impl->_proxy_username; }
198 {
_impl->_proxy_password = val_r; }
201 {
_impl->_proxy_password = std::move(val_r); }
204 {
return _impl->_proxy_password; }
217 {
_impl->_timeout = (t); }
220 {
return _impl->_timeout; }
224 {
_impl->_connect_timeout = (t); }
227 {
return _impl->_connect_timeout; }
231 {
_impl->_maxConcurrentConnections = (v); }
234 {
return _impl->_maxConcurrentConnections; }
238 {
_impl->_minDownloadSpeed = (v); }
241 {
return _impl->_minDownloadSpeed; }
245 {
_impl->_maxDownloadSpeed = (v); }
248 {
return _impl->_maxDownloadSpeed; }
252 {
_impl->_maxSilentTries = (v); }
255 {
return _impl->_maxSilentTries; }
259 {
_impl->_verify_host = (enabled); }
262 {
return _impl->_verify_host; }
266 {
_impl->_verify_peer = enabled; }
269 {
return _impl->_verify_peer; }
272 {
_impl->_client_cert_path = val_r; }
275 {
_impl->_client_cert_path = std::move( val_r ); }
278 {
return _impl->_client_cert_path; }
282 {
_impl->_client_key_path = val_r; }
285 {
_impl->_client_key_path = std::move( val_r ); }
288 {
return _impl->_client_key_path; }
292 {
_impl->_ca_path = val_r; }
295 {
_impl->_ca_path = std::move(val_r.asString()); }
298 {
return _impl->_ca_path; }
302 {
_impl->_authtype = val_r; }
305 {
_impl->_authtype = std::move(val_r); }
308 {
return _impl->_authtype; }
312 {
_impl->_head_requests_allowed = allowed; }
315 {
return _impl->_head_requests_allowed; }
Provides API related macros.
#define LIBZYPP_VERSION_STRING
std::string trim(const std::string &s, const Trim trim_r)
Easy-to use interface to the ZYPP dependency resolver.