aboutsummaryrefslogtreecommitdiffstats
path: root/test/static_handler_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-01-22 10:50:39 +0100
committerLoïc Hoguin <[email protected]>2017-01-22 10:50:39 +0100
commit3e05ab8f82ac69da7c55d1b28284c32ea63186c4 (patch)
treecc13546e9579d572d7d926aeab73847a4fc56ca5 /test/static_handler_SUITE.erl
parent3b91523a3c84a882dcc83f0591b919a939cb72c2 (diff)
downloadcowboy-3e05ab8f82ac69da7c55d1b28284c32ea63186c4.tar.gz
cowboy-3e05ab8f82ac69da7c55d1b28284c32ea63186c4.tar.bz2
cowboy-3e05ab8f82ac69da7c55d1b28284c32ea63186c4.zip
Add experimental cowboy_compress_h stream handler
Currently marked as experimental because it can't be tweaked (just enabled/disabled) and because it is not documented yet.
Diffstat (limited to 'test/static_handler_SUITE.erl')
-rw-r--r--test/static_handler_SUITE.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/static_handler_SUITE.erl b/test/static_handler_SUITE.erl
index 15fd473..78926ee 100644
--- a/test/static_handler_SUITE.erl
+++ b/test/static_handler_SUITE.erl
@@ -39,8 +39,11 @@ groups() ->
{http, [parallel], GroupTests},
{https, [parallel], GroupTests},
{h2, [parallel], GroupTests},
- {h2c, [parallel], GroupTests}
- %% @todo With compression enabled.
+ {h2c, [parallel], GroupTests},
+ {http_compress, [parallel], GroupTests},
+ {https_compress, [parallel], GroupTests},
+ {h2_compress, [parallel], GroupTests},
+ {h2c_compress, [parallel], GroupTests}
].
init_per_suite(Config) ->
@@ -171,7 +174,7 @@ do_get(Path, Config) ->
do_get(Path, ReqHeaders, Config) ->
ConnPid = gun_open(Config),
- Ref = gun:get(ConnPid, Path, ReqHeaders),
+ Ref = gun:get(ConnPid, Path, [{<<"accept-encoding">>, <<"gzip">>}|ReqHeaders]),
{response, IsFin, Status, RespHeaders} = gun:await(ConnPid, Ref),
{ok, Body} = case IsFin of
nofin -> gun:await_body(ConnPid, Ref);