aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_handler_stream_body.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_handler_stream_body.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_handler_stream_body.erl')
-rw-r--r--test/http_handler_stream_body.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/http_handler_stream_body.erl b/test/http_handler_stream_body.erl
index c90f746..13221eb 100644
--- a/test/http_handler_stream_body.erl
+++ b/test/http_handler_stream_body.erl
@@ -13,11 +13,11 @@ init({_Transport, http}, Req, Opts) ->
{ok, Req, #state{headers=Headers, body=Body, reply=Reply}}.
handle(Req, State=#state{headers=_Headers, body=Body, reply=set_resp}) ->
- {ok, Transport, Socket} = cowboy_http_req:transport(Req),
+ {ok, Transport, Socket} = cowboy_req:transport(Req),
SFun = fun() -> Transport:send(Socket, Body), sent end,
SLen = iolist_size(Body),
- {ok, Req2} = cowboy_http_req:set_resp_body_fun(SLen, SFun, Req),
- {ok, Req3} = cowboy_http_req:reply(200, Req2),
+ {ok, Req2} = cowboy_req:set_resp_body_fun(SLen, SFun, Req),
+ {ok, Req3} = cowboy_req:reply(200, Req2),
{ok, Req3, State}.
terminate(_Req, _State) ->