aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_protocol.erl
AgeCommit message (Collapse)Author
2011-03-19Ignore empty lines when expecting the Request-Line.Loïc Hoguin
In the interest of robustness, servers SHOULD ignore any empty line(s) received where a Request-Line is expected. In other words, if the server is reading the protocol stream at the beginning of a message and receives a CRLF first, it should ignore the CRLF.
2011-03-19Comparisons of host names MUST be case-insensitive.Loïc Hoguin
2011-03-19Notify the client that we're closing the connection after the error reply.Loïc Hoguin
2011-03-18Move the reply function to cowboy_http_req.Loïc Hoguin
2011-03-18Introduce Handler:terminate to cleanup the handler's state.Loïc Hoguin
2011-03-18Handler:init/2 should also return the Request in case it changed.Loïc Hoguin
2011-03-18Introduce 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-17Remove a superfluous terminate call in error_terminate.Loïc Hoguin
2011-03-17Run the dispatcher as early as possible to quickly dismiss 404 errors.Loïc Hoguin
2011-03-17Initial commit.Loïc Hoguin