aboutsummaryrefslogtreecommitdiffstats
path: root/examples/echo_post
AgeCommit message (Collapse)Author
2013-01-29Make examples use the new routingLoïc Hoguin
2013-01-22Replace terminate/2 with terminate/3, adding a ReasonLoï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-19Make cowboy_req:has_body/1 return boolean()Loïc Hoguin
This makes it similar to the other has_* functions.
2013-01-05Fix examples to follow new env tuple standardUnix1
This brings examples in line with the recent Middleware change.
2012-12-05Make a few more missing headers lowercaseLoïc Hoguin
2012-10-11Start crypto also in the examples and documentationLoïc Hoguin
2012-10-01Make example README's more thoroughJosh Toft
2012-09-21Don't use decode_packet/3 for parsing the request-lineLoïc Hoguin
First step in making all methods and header names binaries to get rid of many inconsistencies caused by decode_packet/3. Methods are all binary now. Note that since they are case sensitive, the usual methods become <<"GET">>, <<"POST">> and so on.
2012-09-17Improve consistency of return types for cowboy_req APILoïc Hoguin
The signature of parse_header, body_qs, multipart_data and the set_resp_* functions has changed. See the cowboy_req module edoc for more details.
2012-08-27Rename cowboy_http_req to cowboy_reqLoïc Hoguin
2012-08-27Switch to Ranch for connection handlingLoïc Hoguin
This is the first of many API incompatible changes. You have been warned.
2012-07-22Add a POST echo exampleLoïc Hoguin