-
-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Milestone
Description
As a developer of a web application, I would like to automatically decompress request content, if applicable, so that clients can reduce their upload size and I do not need to care of how to handle this.
Example
var decompression = AutoDecompression.Default();
var app = Layout.Create()
.Add(decompression);Acceptance criteria
- The functionality is implemented in the
GenHTTP.Compressionmodule - The concern checks for the
Content-Encodingof an incoming request and wraps it for decompression - After the concern has decompressed content, the request looks to the next handlers like it would be decompressed (no content encoding anymore, probably no content length)
- The
ICompressionAlgorithmis re-used for decompression (Stream->Stream) - The feature can optionally be enabled in the
Defaults()of thePracticesmodule - The
Defaults()implementation of the concern enables all algorithms that are supported byCompressedContent - The feature is documented on the GenHTTP website
- The feature is covered by acceptance tests
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers