Skip to content

adds support for GZip compression, via Accept-Encoding header#18

Merged
xentek merged 1 commit intomasterfrom
accept-encoding
Mar 10, 2017
Merged

adds support for GZip compression, via Accept-Encoding header#18
xentek merged 1 commit intomasterfrom
accept-encoding

Conversation

@xentek
Copy link
Copy Markdown
Member

@xentek xentek commented Mar 10, 2017

  • adds Config.GzipLevel, which can be set via GZIP_LEVEL environment
    variable. It expects a value between -2 and 9, with the default being
    -1, the zlib default compression level.
  • adds CompressionMiddleware that will compress the response if
    clients request it via Accept-Encoding header.

fixes #8

- adds `Config.GzipLevel`, which can be set via `GZIP_LEVEL` environment
  variable. It expects a value between `-2` and `9`, with the default being
  `-1`, the zlib default compression level.
- adds `CompressionMiddleware` that will compress the response if
clients request it via `Accept-Encoding` header.

fixes #8
@xentek xentek added this to the v0.0.3 milestone Mar 10, 2017
@xentek xentek merged commit c65738e into master Mar 10, 2017
@xentek xentek deleted the accept-encoding branch March 10, 2017 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accept-Encoding

1 participant