Created
June 21, 2018 16:56
-
-
Save glennc/f426d880b6f79b5c3e6cb7ff96f7e649 to your computer and use it in GitHub Desktop.
AutomaticDecompression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.AddHttpClient("test") | |
.ConfigurePrimaryHttpMessageHandler(() => | |
{ | |
var handler = new HttpClientHandler(); | |
handler.AutomaticDecompression = System.Net.DecompressionMethods.Deflate; | |
return handler; | |
}); |
steveoh
commented
Jun 21, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment