From 3e05ab8f82ac69da7c55d1b28284c32ea63186c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 22 Jan 2017 10:50:39 +0100 Subject: 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. --- test/static_handler_SUITE.erl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/static_handler_SUITE.erl') 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); -- cgit v1.2.3