added http digest auth to download clients

This commit is contained in:
Flaminel committed 2026-10-15 19:06:26 +03:00
1 parent 9f44e0e33f
commit c16a6753f4
37 files changed
+5376 -66

No files matched your search

@@ -82,7 +82,16 @@ public class DynamicHttpClientFactory : IDynamicHttpClientFactory
RegisterConfiguration(clientName, config);
}
public void RegisterDownloadClient(string clientName, int timeout, HttpClientType clientType, RetryConfig retryConfig, CertificateValidationType certificateType, bool sendUserAgent)
public void RegisterDownloadClient(
string clientName,
int timeout,
HttpClientType clientType,
RetryConfig retryConfig,
CertificateValidationType certificateType,
bool sendUserAgent,
HttpAuthType httpAuthType = HttpAuthType.Basic,
NetworkCredential? httpAuthCredential = null,
Uri? baseUri = null)
{
HttpClientConfig config = new()
{
@@ -91,7 +100,10 @@ public class DynamicHttpClientFactory : IDynamicHttpClientFactory
Type = clientType,
RetryConfig = retryConfig,
CertificateValidationType = certificateType,
SendUserAgent = sendUserAgent
SendUserAgent = sendUserAgent,
HttpAuthType = httpAuthType,
HttpAuthCredential = httpAuthCredential,
BaseUri = baseUri,
};
// Configure Deluge-specific settings if needed