mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
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.
This commit is contained in:
parent
3b91523a3c
commit
3e05ab8f82
10 changed files with 405 additions and 43 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue