HttpRequest.AutomaticDecompression Property
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 7.0.9083)
AutomaticDecompression
Gets or sets the method(s) that can be used for automatic decompression of the response stream; Both GZip and Deflate by default.
Declaration
public DecompressionMethods AutomaticDecompression { get; set; }
Property Value
Type | Description |
---|---|
DecompressionMethods |
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.