Skip to content

Add automatic content decompression #766

@Kaliumhexacyanoferrat

Description

@Kaliumhexacyanoferrat

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.Compression module
  • The concern checks for the Content-Encoding of 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 ICompressionAlgorithm is re-used for decompression (Stream -> Stream)
  • The feature can optionally be enabled in the Defaults() of the Practices module
  • The Defaults() implementation of the concern enables all algorithms that are supported by CompressedContent
  • The feature is documented on the GenHTTP website
  • The feature is covered by acceptance tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions