You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System.Net;
|
|
|
|
|
using System.Net.Http;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Common.Net
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Default http client handler.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class DefaultHttpClientHandler : HttpClientHandler
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="DefaultHttpClientHandler"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DefaultHttpClientHandler()
|
|
|
|
|
{
|
|
|
|
|
// TODO change to DecompressionMethods.All with .NET5
|
|
|
|
|
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|