aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-18 22:38:26 +0100
committerLoïc Hoguin <[email protected]>2011-03-18 22:38:26 +0100
commit408f167621848e8cc56a184d7e9e5a891fb740a2 (patch)
treed3c5ec4c208431bd0678815262bdef30295af417 /README.md
parentc6ad0273a826809fcd3d6b47823623ba1c1e5127 (diff)
downloadcowboy-408f167621848e8cc56a184d7e9e5a891fb740a2.tar.gz
cowboy-408f167621848e8cc56a184d7e9e5a891fb740a2.tar.bz2
cowboy-408f167621848e8cc56a184d7e9e5a891fb740a2.zip
Move the reply function to cowboy_http_req.
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index e1363cc..2390abb 100644
--- a/README.md
+++ b/README.md
@@ -69,7 +69,8 @@ handler could be written like this:
{ok, Req, undefined}.
handle(Req, State) ->
- {reply, 200, [], "Hello World!"}.
+ {ok, Req2} = cowboy_http_req:reply(200, [], "Hello World!", Req),
+ {ok, Req2, State}.
terminate(Req, State) ->
ok.