aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-15 10:11:36 +0100
committerLoïc Hoguin <[email protected]>2018-11-15 10:11:36 +0100
commitfbfec873f6026b858c3604d74d88470ce45f4296 (patch)
tree021fd12f5458d659e15a4bc7638b4dfd62a9df21 /src/cowboy_http.erl
parent292039362a6125dfd0a163d5b0a49b800bf80b11 (diff)
downloadcowboy-fbfec873f6026b858c3604d74d88470ce45f4296.tar.gz
cowboy-fbfec873f6026b858c3604d74d88470ce45f4296.tar.bz2
cowboy-fbfec873f6026b858c3604d74d88470ce45f4296.zip
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.
Diffstat (limited to 'src/cowboy_http.erl')
-rw-r--r--src/cowboy_http.erl1
1 files changed, 1 insertions, 0 deletions
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(),