Add default http client

This commit is contained in:
crobibero
2020-08-19 06:31:45 -06:00
parent 93fe595e5e
commit 076e17f355
4 changed files with 192 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
using System.Net;
using System.Net.Http;
namespace MediaBrowser.Common.Net
{
/// <summary>
/// Default http client handler.
/// </summary>
public class DefaultHttpClientHandler : HttpClientHandler
{
/// <inheritdoc />
public DefaultHttpClientHandler()
{
// TODO change to DecompressionMethods.All with .NET5
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
}
}
}