20#include <zypp-core/fs/WatchFile>
24#include <zypp-media/MediaConfig>
30#define CURL_BINARY "/usr/bin/curl"
70 {
return new Impl( *
this ); }
77 if ( not val_r.empty() )
78 _headers.push_back( std::move(val_r) );
80 WAR <<
"Discard empty header" << endl;
117 if ( not user_r.empty() ) {
118 str <<
"[" << user_r;
119 if ( not pass_r.empty() ) {
120 str <<
":" <<
"########";
137 {
_impl->safeAddHeader( val_r ); }
139 {
_impl->safeAddHeader( std::move(val_r) ); }
144 return _impl->_headers;
154 {
return _impl->_useragent; }
158 {
return not
_impl->_username.empty(); }
161 {
_impl->_username = val_r; }
164 {
_impl->_username = std::move(val_r); }
167 {
return _impl->_username; }
170 {
_impl->_password = val_r; }
173 {
_impl->_password = std::move(val_r); }
176 {
return _impl->_password; }
186 {
_impl->_useproxy = enabled; }
189 {
return _impl->_useproxy; }
193 {
_impl->_proxy = val_r; }
196 {
_impl->_proxy = std::move(val_r); }
199 {
return _impl->_proxy; }
203 {
_impl->_proxy_username = val_r; }
206 {
_impl->_proxy_username = std::move(val_r); }
209 {
return _impl->_proxy_username; }
212 {
_impl->_proxy_password = val_r; }
215 {
_impl->_proxy_password = std::move(val_r); }
218 {
return _impl->_proxy_password; }
231 {
_impl->_timeout = (t); }
234 {
return _impl->_timeout; }
238 {
_impl->_connect_timeout = (t); }
241 {
return _impl->_connect_timeout; }
245 {
_impl->_maxConcurrentConnections = (v); }
248 {
return _impl->_maxConcurrentConnections; }
252 {
_impl->_minDownloadSpeed = (v); }
255 {
return _impl->_minDownloadSpeed; }
259 {
_impl->_maxDownloadSpeed = (v); }
262 {
return _impl->_maxDownloadSpeed; }
266 {
_impl->_maxSilentTries = (v); }
269 {
return _impl->_maxSilentTries; }
273 {
_impl->_verify_host = (enabled); }
276 {
return _impl->_verify_host; }
280 {
_impl->_verify_peer = enabled; }
283 {
return _impl->_verify_peer; }
286 {
_impl->_client_cert_path = val_r; }
289 {
_impl->_client_cert_path = std::move( val_r ); }
292 {
return _impl->_client_cert_path; }
296 {
_impl->_client_key_path = val_r; }
299 {
_impl->_client_key_path = std::move( val_r ); }
302 {
return _impl->_client_key_path; }
305 {
_impl->_enableCookieFile = enable; }
308 {
return _impl->_enableCookieFile; }
311 {
_impl->_ca_path = val_r; }
314 {
_impl->_ca_path = std::move(val_r); }
317 {
return _impl->_ca_path; }
321 {
_impl->_authtype = val_r; }
324 {
_impl->_authtype = std::move(val_r); }
327 {
return _impl->_authtype; }
331 {
_impl->_head_requests_allowed = allowed; }
334 {
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.