mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00

This behavior can be enabled with the `compress` protocol option. See the `compress_response` example for more details. All tests are now ran with and without compression for both HTTP and HTTPS.
14 lines
281 B
Erlang
14 lines
281 B
Erlang
%% Feel free to use, reuse and abuse the code in this file.
|
|
|
|
-module(compress_response).
|
|
|
|
%% API.
|
|
-export([start/0]).
|
|
|
|
%% API.
|
|
|
|
start() ->
|
|
ok = application:start(crypto),
|
|
ok = application:start(ranch),
|
|
ok = application:start(cowboy),
|
|
ok = application:start(compress_response).
|