From fbfec873f6026b858c3604d74d88470ce45f4296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 15 Nov 2018 10:11:36 +0100 Subject: Add a compress_buffering option to cowboy_compress_h Also changes the behavior to disable buffering by default, so that the default works in all cases, including server-sent events. --- src/cowboy_http.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cowboy_http.erl') diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl index 56a4af8..9a10790 100644 --- a/src/cowboy_http.erl +++ b/src/cowboy_http.erl @@ -25,6 +25,7 @@ -export([system_code_change/4]). -type opts() :: #{ + compress_buffering => boolean(), compress_threshold => non_neg_integer(), connection_type => worker | supervisor, env => cowboy_middleware:env(), -- cgit v1.2.3