using System; using System.Threading; namespace MediaBrowser.Common.Net { /// /// Class HttpRequestOptions /// public class HttpRequestOptions { /// /// Gets or sets the URL. /// /// The URL. public string Url { get; set; } /// /// Gets or sets the accept header. /// /// The accept header. public string AcceptHeader { get; set; } /// /// Gets or sets the cancellation token. /// /// The cancellation token. public CancellationToken CancellationToken { get; set; } /// /// Gets or sets the resource pool. /// /// The resource pool. public SemaphoreSlim ResourcePool { get; set; } /// /// Gets or sets the user agent. /// /// The user agent. public string UserAgent { get; set; } /// /// Gets or sets the progress. /// /// The progress. public IProgress Progress { get; set; } /// /// Gets or sets a value indicating whether [enable HTTP compression]. /// /// true if [enable HTTP compression]; otherwise, false. public bool EnableHttpCompression { get; set; } /// /// Initializes a new instance of the class. /// public HttpRequestOptions() { EnableHttpCompression = true; } } }