0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

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.
This commit is contained in:
Loïc Hoguin 2018-11-15 10:11:36 +01:00
parent 292039362a
commit fbfec873f6
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
5 changed files with 79 additions and 6 deletions

View file

@ -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(),