aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index fc8b127..876af0f 100644
--- a/README.md
+++ b/README.md
@@ -63,7 +63,10 @@ use one of the predefined handlers or write your own. An hello world HTTP
handler could be written like this:
-module(my_handler).
- -export([handle/2]).
+ -export([init/2, handle/2]).
- handle(Opts, Req) ->
+ init(Req, Opts) ->
+ {ok, undefined}.
+
+ handle(Req, State) ->
{reply, 200, [], "Hello World!"}.