aboutsummaryrefslogtreecommitdiffstats
path: root/examples/chunked_hello_world/src
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 /examples/chunked_hello_world/src
parent9e2622becb4d1a37d410f484a14ef32101e560ab (diff)
downloadcowboy-d3dcaf109b225b1384fad5b17dbae9c4888c40ea.tar.gz
cowboy-d3dcaf109b225b1384fad5b17dbae9c4888c40ea.tar.bz2
cowboy-d3dcaf109b225b1384fad5b17dbae9c4888c40ea.zip
Rename cowboy_http_req to cowboy_req
Diffstat (limited to 'examples/chunked_hello_world/src')
-rw-r--r--examples/chunked_hello_world/src/toppage_handler.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/chunked_hello_world/src/toppage_handler.erl b/examples/chunked_hello_world/src/toppage_handler.erl
index 906f292..0838832 100644
--- a/examples/chunked_hello_world/src/toppage_handler.erl
+++ b/examples/chunked_hello_world/src/toppage_handler.erl
@@ -11,12 +11,12 @@ init(_Transport, Req, []) ->
{ok, Req, undefined}.
handle(Req, State) ->
- {ok, Req2} = cowboy_http_req:chunked_reply(200, Req),
- ok = cowboy_http_req:chunk("Hello\r\n", Req2),
+ {ok, Req2} = cowboy_req:chunked_reply(200, Req),
+ ok = cowboy_req:chunk("Hello\r\n", Req2),
ok = timer:sleep(1000),
- ok = cowboy_http_req:chunk("World\r\n", Req2),
+ ok = cowboy_req:chunk("World\r\n", Req2),
ok = timer:sleep(1000),
- ok = cowboy_http_req:chunk("Chunked!\r\n", Req2),
+ ok = cowboy_req:chunk("Chunked!\r\n", Req2),
{ok, Req2, State}.
terminate(_Req, _State) ->