-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Details about AutomaticDecompression #8472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -207,6 +207,12 @@ These configuration options are not available starting with .NET 5. | |
| <format type="text/markdown">< v4.1.0 to v4.3.2 is used, the default is <xref:System.Net.DecompressionMethods.GZip> and <xref:System.Net.DecompressionMethods.Deflate>. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -180,7 +180,17 @@ These configuration options are not available starting with .NET 5. | |
| <Docs> | ||
| <summary>Gets or sets the type of decompression method used by the handler for automatic decompression of the HTTP content response.</summary> | ||
| <value>The type of decompression method used by the handler for automatic decompression of the HTTP content response.</value> | ||
| <remarks>To be added.</remarks> | ||
| <remarks> | ||
| <format type="text/markdown"><![CDATA[ | ||
|
|
||
| ## Remarks | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comments as above. |
||
| Automatic decompression works only on the top most compression. So if the content is compressed multiple times, only the last compression will be decompressed. | ||
| For example, for a reponse with `Content-Encoding: gzip, br` header, the content will only be decompressed using Brotli, leaving the still gzipped content in the <xref:System.Net.Http.HttpResponseMessage.Content>. | ||
|
|
||
| Setting automatic decompression to anything else than <xref:System.Net.DecompressionMethods.None> will cause adding `Accept-Encoding` header with the set values into every outgoing <xref:System.Net.Http.HttpRequestMessage>. | ||
|
|
||
| ]]></format> | ||
| </remarks> | ||
| </Docs> | ||
| </Member> | ||
| <Member MemberName="ConnectCallback"> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
response