class

HTTP::CompressHandler

Inherits HTTP::Handler / Reference / Object

A handler that configures an HTTP::Server::Response to compress the response output, either using gzip or deflate, depending on the Accept-Encoding request header.

NOTE: To use CompressHandler, you must explicitly import it with require "http"

Instance methods

call(context : HTTP::Server::Context) : Nil
Source