2020-08-19 12:31:45 +00:00
|
|
|
|
using System.Net;
|
|
|
|
|
using System.Net.Http;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Common.Net
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Default http client handler.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class DefaultHttpClientHandler : HttpClientHandler
|
|
|
|
|
{
|
2020-08-19 13:09:07 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="DefaultHttpClientHandler"/> class.
|
|
|
|
|
/// </summary>
|
2020-08-19 12:31:45 +00:00
|
|
|
|
public DefaultHttpClientHandler()
|
|
|
|
|
{
|
|
|
|
|
// TODO change to DecompressionMethods.All with .NET5
|
|
|
|
|
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|