aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_handler_init_shutdown.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_init_shutdown.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_init_shutdown.erl')
-rw-r--r--test/http_handler_init_shutdown.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/http_handler_init_shutdown.erl b/test/http_handler_init_shutdown.erl
index ac63b44..c26fa97 100644
--- a/test/http_handler_init_shutdown.erl
+++ b/test/http_handler_init_shutdown.erl
@@ -5,12 +5,12 @@
-export([init/3, handle/2, terminate/2]).
init({_Transport, http}, Req, _Opts) ->
- {ok, Req2} = cowboy_http_req:reply(<<"666 Init Shutdown Testing">>,
+ {ok, Req2} = cowboy_req:reply(<<"666 Init Shutdown Testing">>,
[{'Connection', <<"close">>}], Req),
{shutdown, Req2, undefined}.
handle(Req, State) ->
- {ok, Req2} = cowboy_http_req:reply(200, [], "Hello world!", Req),
+ {ok, Req2} = cowboy_req:reply(200, [], "Hello world!", Req),
{ok, Req2, State}.
terminate(_Req, _State) ->