Reputation: 1730
How can you use Windows.Web.Http.HttpClient with gzip?
Currently focusing on Windows 10 application.
Upvotes: 2
Views: 350
Reputation: 16420
It just works.
Just make sure the request contains the following header:
Accept-Encoding: gzip, deflate
And I think it does by default.
You can disable GZIP decompression by creating a HttpBaseProtocolFilter
with AutomaticDecompression
set to false
.
Upvotes: 5