using System.Net; using Cleanuparr.Domain.Enums; namespace Cleanuparr.Infrastructure.Http.DynamicHttpClientSystem; /// /// Configuration for a dynamic HTTP client /// public class HttpClientConfig { public string Name { get; set; } = string.Empty; public int Timeout { get; set; } public HttpClientType Type { get; set; } public RetryConfig? RetryConfig { get; set; } // Deluge-specific settings public bool AllowAutoRedirect { get; set; } = true; public DecompressionMethods AutomaticDecompression { get; set; } = DecompressionMethods.GZip | DecompressionMethods.Deflate; public CertificateValidationType CertificateValidationType { get; set; } = CertificateValidationType.Enabled; /// /// Whether requests from this client carry a User-Agent header. /// public bool SendUserAgent { get; set; } /// /// HTTP authentication scheme to answer a reverse proxy's challenge with. /// public HttpAuthType HttpAuthType { get; set; } = HttpAuthType.Basic; /// /// Credential to send as HTTP auth, or null when this client has none configured. /// public NetworkCredential? HttpAuthCredential { get; set; } /// /// Scheme, host and port of the client's URL, used as the Digest key. /// public Uri? BaseUri { get; set; } }