0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 20:50:24 +00:00

Describe arguments of the HTTP handler callbacks

This commit is contained in:
Loïc Hoguin 2013-03-02 20:33:22 +01:00
parent 8c54c048f2
commit a165a0bf46
2 changed files with 20 additions and 9 deletions

View file

@ -108,8 +108,10 @@ handlers, Websocket handlers, REST handlers and static handlers. Their
usage is documented in the respective sections of the guide.
Most applications use the plain HTTP handler, which has three callback
functions: init/3, handle/2 and terminate/3. Following is an example of
a simple handler module.
functions: init/3, handle/2 and terminate/3. You can find more information
about the arguments and possible return values of these callbacks in the
HTTP handlers section of this guide. Following is an example of a simple
HTTP handler module.
``` erlang
-module(my_handler).