0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00
cowboy/test
Loïc Hoguin 5ce4c2bfb4 Unify the init and terminate callbacks
This set of changes is the first step to simplify the
writing of handlers, by removing some extraneous
callbacks and making others optional.

init/3 is now init/2, its first argument being removed.

rest_init/2 and rest_terminate/2 have been removed.

websocket_init/3 and websocket_terminate/3 have been removed.

terminate/3 is now optional. It is called regardless of
the type of handler, including rest and websocket.

The return value of init/2 changed. It now returns
{Mod, Req, Opts} with Mod being either one of the four
handler type or a custom module. It can also return extra
timeout and hibernate options.

The signature for sub protocols has changed, they now
receive these extra timeout and hibernate options.

Loop handlers are now implemented in cowboy_long_polling,
and will be renamed throughout the project in a future commit.
2014-09-26 15:58:44 +03:00
..
handlers Unify the init and terminate callbacks 2014-09-26 15:58:44 +03:00
http_SUITE_data Unify the init and terminate callbacks 2014-09-26 15:58:44 +03:00
ws_SUITE_data Unify the init and terminate callbacks 2014-09-26 15:58:44 +03:00
cover.spec Use ct_run instead of rebar ct for running ct tests 2013-01-04 17:56:49 +01:00
cowboy_ct_hook.erl Make loop handlers work with SPDY 2014-04-26 13:46:55 +02:00
cowboy_error_h.erl Make loop handlers work with SPDY 2014-04-26 13:46:55 +02:00
cowboy_test.erl Make loop handlers work with SPDY 2014-04-26 13:46:55 +02:00
eunit_SUITE.erl Start applications directly from the ct hook 2014-04-22 20:52:08 +02:00
http_SUITE.erl Remove the onrequest hook 2014-09-24 14:39:17 +03:00
loop_handler_SUITE.erl Make loop handlers work with SPDY 2014-04-26 13:46:55 +02:00
spdy_SUITE.erl Drop R15 support 2014-07-12 14:19:29 +02:00
ws_SUITE.erl Unify the init and terminate callbacks 2014-09-26 15:58:44 +03:00