aboutsummaryrefslogtreecommitdiffstats
path: root/examples
AgeCommit message (Collapse)Author
2013-01-30Rename example 'static' to 'static_world' to avoid confusionLoïc Hoguin
2013-01-30Merge branch 'websocket-example' of https://github.com/pvieytes/cowboyLoïc Hoguin
2013-01-30add websocket examplePablo Vieytes
2013-01-29Merge branch 'feature_basic_auth' of https://github.com/ivlis/cowboyLoïc Hoguin
2013-01-30Implement authorization header parsingIvan Lisenkov
Basic HTTP authorization according to RFC 2617 is implemented. Added an example of its usage with REST handler.
2013-01-29Make examples use the new routingLoïc Hoguin
2013-01-22Add HTML5 Video Example to the static exampleLoï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-07Add optional automatic response body compressionLoïc Hoguin
This behavior can be enabled with the `compress` protocol option. See the `compress_response` example for more details. All tests are now ran with and without compression for both HTTP and HTTPS.
2013-01-05Fix examples to follow new env tuple standardUnix1
This brings examples in line with the recent Middleware change.
2012-12-20Add cookie exampleLoïc Hoguin
2012-12-14Improve Markdown for the examples READMELoïc Hoguin
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-11Merge branch 'dbmercer-patch-1' of git://github.com/dbmercer/cowboy.gitLoïc Hoguin
2012-10-11Modified static example to send appropriate MIME typedbmercer
Modified the static example in the examples subdirectory to use the mimetypes application to determine the appropriate MIME type to send down the wire in the HTTP headers of the reply.
2012-10-11Fix Vary header, was wrongly named Variances previouslyLoïc Hoguin
2012-10-01Fixing relative linksJosh Toft
2012-10-01Add rest_hello_world link to examples READMEJosh Toft
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_static to cowboy_staticLoïc Hoguin
2012-08-27Rename cowboy_http_rest to cowboy_restLoïc Hoguin
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 REST Hello World exampleLoïc Hoguin
2012-07-22Add a Chunked Hello World exampleLoïc Hoguin
2012-07-22Add a POST echo exampleLoïc Hoguin
2012-07-22Add a GET echo exampleLoïc Hoguin
2012-07-14Add a simple Static File Server exampleLoïc Hoguin
2012-07-13Add an Hello World exampleLoïc Hoguin
2012-02-20Add an examples/ directory containing a link to cowboy_examplesLoïc Hoguin