Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-01-22 | Replace terminate/2 with terminate/3, adding a Reason | Loïc Hoguin | |
This should have been done a *long* time ago, back when I initially added Websocket support. This is the first part of two in improving loop handler support with regards to socket closure. Reason may include: {normal, shutdown} for the most normal shutdown, {normal, timeout} for a loop handler timeout shutdown, or {error, _} if an error occured. | |||
2013-01-03 | Add middleware support | Loïc Hoguin | |
Middlewares allow customizing the request processing. All existing Cowboy project are incompatible with this commit. You need to change `{dispatch, Dispatch}` in the protocol options to `{env, [{dispatch, Dispatch}]}` to fix your code. |