From d3dcaf109b225b1384fad5b17dbae9c4888c40ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 27 Aug 2012 13:28:57 +0200 Subject: Rename cowboy_http_req to cowboy_req --- examples/chunked_hello_world/src/toppage_handler.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/chunked_hello_world/src') 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) -> -- cgit v1.2.3