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

@@ -1,3 +1,4 @@
using System.Net;
using Cleanuparr.Domain.Enums;
using Cleanuparr.Persistence.Models.Configuration.General;
@@ -36,7 +37,16 @@ public interface IDynamicHttpClientFactory
/// <summary>
/// Registers a configuration for a download client
/// </summary>
void RegisterDownloadClient(string clientName, int timeout, HttpClientType clientType, RetryConfig retryConfig, CertificateValidationType certificateType, bool sendUserAgent);
void RegisterDownloadClient(
string clientName,
int timeout,
HttpClientType clientType,
RetryConfig retryConfig,
CertificateValidationType certificateType,
bool sendUserAgent,
HttpAuthType httpAuthType = HttpAuthType.Basic,
NetworkCredential? httpAuthCredential = null,
Uri? baseUri = null);
/// <summary>
/// Registers a client that opts out of every handler setting and only carries the User-Agent.