HttpClientHandler.AutomaticDecompression Property


Gets or sets the type of decompression method used by the handler for automatic decompression of the HTTP content response.

 property System::Net::DecompressionMethods AutomaticDecompression { System::Net::DecompressionMethods get(); void set(System::Net::DecompressionMethods value); };
public System.Net.DecompressionMethods AutomaticDecompression { get; set; }
member this.AutomaticDecompression : System.Net.DecompressionMethods with get, set
Public Property AutomaticDecompression As DecompressionMethods

Property Value

The automatic decompression method used by the handler.


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.

Applies to