mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-09-13 05:47:33 -04:00
27 lines
893 B
C#
27 lines
893 B
C#
using System.Net;
|
|
using Cleanuparr.Domain.Enums;
|
|
|
|
namespace Cleanuparr.Infrastructure.Http.DynamicHttpClientSystem;
|
|
|
|
/// <summary>
|
|
/// Configuration for a dynamic HTTP client
|
|
/// </summary>
|
|
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;
|
|
|
|
/// <summary>
|
|
/// Whether requests from this client carry a User-Agent header.
|
|
/// </summary>
|
|
public bool SendUserAgent { get; set; }
|
|
}
|