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 response caching].
///
/// true if [enable response caching]; otherwise, false.
public bool EnableResponseCache { get; set; }
public bool EnableHttpCompression { get; set; }
public HttpRequestOptions()
{
EnableHttpCompression = true;
}
}
}