Gets or sets the method(s) that can be used for automatic decompression of the response stream; Both GZip and Deflate by default.

Namespace:  Rebex.Net
Assembly:  Rebex.Http (in Rebex.Http.dll)

Syntax

Visual Basic
Public Property AutomaticDecompression As DecompressionMethods
	Get
	Set
C#
public DecompressionMethods AutomaticDecompression { get; set; }

Remarks

This property sets Accept-Encoding header if and only if the header is not set explicitly using Headers collection before the request is sent. If the response encoding meets some of the methods set, the response stream gets decompressed automatically; otherwise, no decompression is used.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also