From 7888be00d254677362ea2904c2c8cceeb1fc0663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 22 Mar 2011 19:50:02 +0100 Subject: Forward transport and protocol name to Handler:init. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index ff82d2f..c47974c 100644 --- a/README.md +++ b/README.md @@ -63,9 +63,9 @@ use one of the predefined handlers or write your own. An hello world HTTP handler could be written like this: -module(my_handler). - -export([init/2, handle/2, terminate/2]). + -export([init/3, handle/2, terminate/2]). - init(Req, Opts) -> + init({tcp, http}, Req, Opts) -> {ok, Req, undefined}. handle(Req, State) -> -- cgit v1.2.3