diff options
author | Loïc Hoguin <[email protected]> | 2011-03-18 22:38:26 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-03-18 22:38:26 +0100 |
commit | 408f167621848e8cc56a184d7e9e5a891fb740a2 (patch) | |
tree | d3c5ec4c208431bd0678815262bdef30295af417 /README.md | |
parent | c6ad0273a826809fcd3d6b47823623ba1c1e5127 (diff) | |
download | cowboy-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.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |