0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 04:30:25 +00:00

Rename cowboy_http_req to cowboy_req

This commit is contained in:
Loïc Hoguin 2012-08-27 13:28:57 +02:00
parent 9e2622becb
commit d3dcaf109b
26 changed files with 115 additions and 115 deletions

View file

@ -8,9 +8,9 @@ init({_Transport, http}, Req, _Opts) ->
{ok, Req, undefined}.
handle(Req, State) ->
{ok, Req2} = cowboy_http_req:chunked_reply(200, Req),
cowboy_http_req:chunk("chunked_handler\r\n", Req2),
cowboy_http_req:chunk("works fine!", Req2),
{ok, Req2} = cowboy_req:chunked_reply(200, Req),
cowboy_req:chunk("chunked_handler\r\n", Req2),
cowboy_req:chunk("works fine!", Req2),
{ok, Req2, State}.
terminate(_Req, _State) ->