aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http2.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_http2.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_http2.erl')
-rw-r--r--src/cowboy_http2.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cowboy_http2.erl b/src/cowboy_http2.erl
index fc1a3a0..3397241 100644
--- a/src/cowboy_http2.erl
+++ b/src/cowboy_http2.erl
@@ -27,6 +27,7 @@
-export([system_code_change/4]).
-type opts() :: #{
+ compress_buffering => boolean(),
compress_threshold => non_neg_integer(),
connection_type => worker | supervisor,
enable_connect_protocol => boolean(),