Can you add support for automatic decompression of incoming data?
{{HttpClientHandler handler = new HttpClientHandler()
{
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate
};using (var client = new HttpClient(handler)) //see update below
{ // your code}
https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclienthandler.automaticdecompression?view=net-5.0
Cited from the url above:
For the .NET Framework 4.x System.Net.Http binary in the Global Assembly Cache (GAC), the default value is None.
When the System.Net.Http NuGet package v4.1.0 to v4.3.2 is used, the default is GZip and Deflate.
After NuGet package v4.3.2, the default value of None is used.
Can you add support for automatic decompression of incoming data?
{{HttpClientHandler handler = new HttpClientHandler()
{
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate
};using (var client = new HttpClient(handler)) //see update below
{ // your code}
https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclienthandler.automaticdecompression?view=net-5.0
Cited from the url above:
For the .NET Framework 4.x System.Net.Http binary in the Global Assembly Cache (GAC), the default value is None.
When the System.Net.Http NuGet package v4.1.0 to v4.3.2 is used, the default is GZip and Deflate.
After NuGet package v4.3.2, the default value of None is used.