From 408f167621848e8cc56a184d7e9e5a891fb740a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 18 Mar 2011 22:38:26 +0100 Subject: Move the reply function to cowboy_http_req. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') 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. -- cgit v1.2.3