Skip to content
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

Configuration options for Rack::Deflate #457

Merged
merged 2 commits into from Aug 3, 2014
Merged

Commits on Jan 15, 2014

  1. Copy the full SHA
    8e52002 View commit details
    Browse the repository at this point in the history
  2. Adds deflater options to control compression on per-request level.

    * Adds :if option which should be given a lambda accepting env, status, headers, and body options.
    * When :if evaluates to false a response body won't be compressed.
    * Adds :include option which should be given an array of compressible content types.
    * When :include don't include request's content type then response body won't be compressed.
    jakubpawlowicz committed Jan 15, 2014
    Copy the full SHA
    3ae2f30 View commit details
    Browse the repository at this point in the history