//设置HttpClientHandler的AutomaticDecompression
var handler = new HttpClientHandler() { AutomaticDecompression = DecompressionMethods.GZip };
//创建HttpClient(注意传入HttpClientHandler)
using HttpClient Http = new HttpClient(handler);
参考文献
https://www.bbsmax.com/A/kvJ3WD7JgM/
标签:AutomaticDecompression,C#,HttpClientHandler,handler,gzip,new,HttpClient From: https://www.cnblogs.com/Yu-Core/p/16858631.html