diff options
author | Loïc Hoguin <[email protected]> | 2011-03-22 19:50:02 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-03-22 19:50:02 +0100 |
commit | 7888be00d254677362ea2904c2c8cceeb1fc0663 (patch) | |
tree | 3fa3b12ae340644cb49cf6468f2a59442ac5dbb6 /README.md | |
parent | e0185dd27fef66a1fc9a92db9c1a75cc8a130821 (diff) | |
download | cowboy-7888be00d254677362ea2904c2c8cceeb1fc0663.tar.gz cowboy-7888be00d254677362ea2904c2c8cceeb1fc0663.tar.bz2 cowboy-7888be00d254677362ea2904c2c8cceeb1fc0663.zip |
Forward transport and protocol name to Handler:init.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) -> |