Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-03-18 | Move the reply function to cowboy_http_req. | Loïc Hoguin | |
2011-03-18 | Introduce Handler:terminate to cleanup the handler's state. | Loïc Hoguin | |
2011-03-18 | Handler:init/2 should also return the Request in case it changed. | Loïc Hoguin | |
2011-03-18 | Introduce Handler:init/2 for initializing the handler state. | Loïc Hoguin | |
We need an init function in order to process upgrade instructions for protocols like WebSockets, but also to request an active receive mode for long-polling connections, both of which will be implemented at a later time. | |||
2011-03-17 | Don't crash on Transport:controlling_process return in the acceptor. | Loïc Hoguin | |
Crashes can happen if we close the connection too fast, leading to controlling_process returning {error, closed} instead of ok. This can happen when we receive bad requests, reply with 404 Not Found and more. Simply do not match the return value of controlling_process to avoid this. | |||
2011-03-17 | Remove a superfluous terminate call in error_terminate. | Loïc Hoguin | |
2011-03-17 | Run the dispatcher as early as possible to quickly dismiss 404 errors. | Loïc Hoguin | |
2011-03-17 | Initial commit. | Loïc Hoguin | |