aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-08-27 13:28:57 +0200
committerLoïc Hoguin <[email protected]>2012-08-27 13:28:57 +0200
commitd3dcaf109b225b1384fad5b17dbae9c4888c40ea (patch)
tree171cabef2c5aec776631d7a5d14ab687c563e38b /test/http_SUITE.erl
parent9e2622becb4d1a37d410f484a14ef32101e560ab (diff)
downloadcowboy-d3dcaf109b225b1384fad5b17dbae9c4888c40ea.tar.gz
cowboy-d3dcaf109b225b1384fad5b17dbae9c4888c40ea.tar.bz2
cowboy-d3dcaf109b225b1384fad5b17dbae9c4888c40ea.zip
Rename cowboy_http_req to cowboy_req
Diffstat (limited to 'test/http_SUITE.erl')
-rw-r--r--test/http_SUITE.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index a83da34..60cbbe7 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -597,13 +597,13 @@ onrequest_reply(Config) ->
%% Hook for the above onrequest tests.
onrequest_hook(Req) ->
- case cowboy_http_req:qs_val(<<"reply">>, Req) of
+ case cowboy_req:qs_val(<<"reply">>, Req) of
{undefined, Req2} ->
- {ok, Req3} = cowboy_http_req:set_resp_header(
+ {ok, Req3} = cowboy_req:set_resp_header(
'Server', <<"Serenity">>, Req2),
Req3;
{_, Req2} ->
- {ok, Req3} = cowboy_http_req:reply(
+ {ok, Req3} = cowboy_req:reply(
200, [], <<"replied!">>, Req2),
Req3
end.
@@ -626,7 +626,7 @@ onresponse_reply(Config) ->
%% Hook for the above onresponse tests.
onresponse_hook(_, Headers, Req) ->
- {ok, Req2} = cowboy_http_req:reply(
+ {ok, Req2} = cowboy_req:reply(
<<"777 Lucky">>, [{<<"x-hook">>, <<"onresponse">>}|Headers], Req),
Req2.