Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
azzlack committed Aug 28, 2014
1 parent 5f2593d commit 90185cb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Just make sure the `gzip` and `deflate` values are included in the `Accept-Encod
#### C\#
You need to apply the following code when creating your `HttpClient`.
```csharp
var client = new HttpClient(new ClientompressionHandler(new HttpClientHandler(), new GZipCompressor(), new DeflateCompressor()));
var client = new HttpClient(new ClientompressionHandler(new GZipCompressor(), new DeflateCompressor()));

client.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip"));
client.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("deflate"));
Expand All @@ -41,10 +41,14 @@ var clientCompressionHandler = new ClientCompressionHandler(4096, new HttpClient
The above code will skip compression for any request/response that is smaller than `4096 bytes` / `4 kB`.

## Version history
#### 1.1 (current)
#### 1.1.1 (current)
* Changed default threshold for compression to 860 bytes (what Akamai uses)
* Now reports proper Content-Length

#### 1.1.0
* Simplified usage
* Added support for setting a minimum content size for compressing

#### 1.0
#### 1.0.3
* First release, basic compression of server responses and client requests
* Did not support compressing POSTs and PUTs

0 comments on commit 90185cb

Please sign in to comment.