20#include <zypp-core/fs/WatchFile>
24#include <zypp-media/MediaConfig>
30#define CURL_BINARY "/usr/bin/curl"
71 {
return new Impl( *
this ); }
78 if ( not val_r.empty() )
79 _headers.push_back( std::move(val_r) );
81 WAR <<
"Discard empty header" << endl;
119 if ( not user_r.empty() ) {
120 str <<
"[" << user_r;
121 if ( not pass_r.empty() ) {
122 str <<
":" <<
"########";
139 {
_impl->safeAddHeader( val_r ); }
141 {
_impl->safeAddHeader( std::move(val_r) ); }
146 return _impl->_headers;
156 {
return _impl->_useragent; }
160 {
return not
_impl->_username.empty() && not
_impl->_password.empty(); }
163 {
_impl->_username = val_r; }
166 {
_impl->_username = std::move(val_r); }
169 {
return _impl->_username; }
172 {
_impl->_password = val_r; }
175 {
_impl->_password = std::move(val_r); }
178 {
return _impl->_password; }
188 {
_impl->_useproxy = enabled; }
191 {
return _impl->_useproxy; }
195 {
_impl->_proxy = val_r; }
198 {
_impl->_proxy = std::move(val_r); }
201 {
return _impl->_proxy; }
205 {
_impl->_proxy_username = val_r; }
208 {
_impl->_proxy_username = std::move(val_r); }
211 {
return _impl->_proxy_username; }
214 {
_impl->_proxy_password = val_r; }
217 {
_impl->_proxy_password = std::move(val_r); }
220 {
return _impl->_proxy_password; }
233 {
_impl->_timeout = (t); }
236 {
return _impl->_timeout; }
240 {
_impl->_connect_timeout = (t); }
243 {
return _impl->_connect_timeout; }
247 {
_impl->_maxConcurrentConnections = (v); }
250 {
return _impl->_maxConcurrentConnections; }
254 {
_impl->_minDownloadSpeed = (v); }
257 {
return _impl->_minDownloadSpeed; }
261 {
_impl->_minDownloadSpeedTime = v; }
264 {
return _impl->_minDownloadSpeedTime; }
268 {
_impl->_maxDownloadSpeed = (v); }
271 {
return _impl->_maxDownloadSpeed; }
275 {
_impl->_maxSilentTries = (v); }
278 {
return _impl->_maxSilentTries; }
282 {
_impl->_verify_host = (enabled); }
285 {
return _impl->_verify_host; }
289 {
_impl->_verify_peer = enabled; }
292 {
return _impl->_verify_peer; }
295 {
_impl->_client_cert_path = val_r; }
298 {
_impl->_client_cert_path = std::move( val_r ); }
301 {
return _impl->_client_cert_path; }
305 {
_impl->_client_key_path = val_r; }
308 {
_impl->_client_key_path = std::move( val_r ); }
311 {
return _impl->_client_key_path; }
314 {
_impl->_enableCookieFile = enable; }
317 {
return _impl->_enableCookieFile; }
320 {
_impl->_ca_path = val_r; }
323 {
_impl->_ca_path = std::move(val_r); }
326 {
return _impl->_ca_path; }
330 {
_impl->_authtype = val_r; }
333 {
_impl->_authtype = std::move(val_r); }
336 {
return _impl->_authtype; }
340 {
_impl->_head_requests_allowed = allowed; }
343 {
return _impl->_head_requests_allowed; }
Provides API related macros.
String related utilities and Regular expression matching.
std::string trim(const std::string &s, const Trim trim_r)
Easy-to use interface to the ZYPP dependency resolver.