[erlang-questions] Cowboy: init and handle — how to use them?

Max Lapshin <>
Wed Dec 26 16:23:08 CET 2012


Loic, would you kindly explain what are the exact rules to split code
between init/3 and handle/2?

Frankly speaking, I never use terminate, because I also doesn't
understand what is it for, but most interesting is the question about
init and handle.

Where should I put database select, for example?



More information about the erlang-questions mailing list