aboutsummaryrefslogtreecommitdiffstats
path: root/examples
AgeCommit message (Collapse)Author
2013-09-07Convert the hello world example to a releaseLoïc Hoguin
2013-09-07Fix wrong header sent in echo_post exampleLoïc Hoguin
2013-09-04Make cowlib a proper dependencyLoïc Hoguin
Start moving a few functions from Cowboy into cowlib.
2013-08-27Fix issue when modifying websocket exampleLoïc Hoguin
Thanks ale.
2013-08-24Update Ranch to 0.8.5Loïc Hoguin
2013-08-01Fix rest_pastebin exampleKuk-Hyun Lee
2013-06-20Update Ranch to 0.8.4Loïc Hoguin
2013-05-16Update Ranch to 0.8.3Loïc Hoguin
2013-04-12Fix rest_pastebin exampleAdam Cammack
Bring the rest_pastebin example in line with REST API changes for creating resources.
2013-04-12Update Ranch to 0.8.1Loïc Hoguin
2013-04-11Remove process_post, post_is_create, create_path, created_path callbacksLoïc Hoguin
Instead it will always go through content_types_accepted and it is up to the resource code to do any creation and to return the created path if the method is POST and the client should be redirected to the created resource's location. This removes the meta value 'put_path' as it is not needed anymore. This fixes an issue with PATCH where content types were not normalized.
2013-04-03Update Ranch to 0.8.0Loïc Hoguin
2013-03-06Update Ranch to 0.6.2Loïc Hoguin
2013-03-01Add an example of onresponse hooksAdam Cammack
Also fix the guide entry on hooks.
2013-03-01Add an SSL exampleAdam Cammack
2013-02-16Merge branch 'eventsource_example' of git://github.com/acammack/cowboyLoïc Hoguin
2013-02-16Merge branch 'web_server_example' of git://github.com/acammack/cowboyLoïc Hoguin
2013-02-16Add EventSource exampleAdam Cammack
Port from extend/cowboy_examples.
2013-02-16Add a web server exampleAdam Cammack
Explore re-routing in middleware.
2013-02-16Improve pastebin exampleAdam Cammack
Reject more malicious paths.
2013-02-12Add a REST example that streams its responseAdam Cammack
2013-02-09Add an example with custom middlewareAdam Cammack
2013-02-09Fix examples linksLoïc Hoguin
Thanks to grass on IRC for the heads up.
2013-02-09Improve Websocket exampleLoïc Hoguin
2013-02-07Merge branch 'add_rest_example' of git://github.com/acammack/cowboyLoïc Hoguin
2013-02-07Add a more involved REST exampleAdam Cammack
A pastebin type application that can optionally highlight the output as both text and HTML.
2013-02-06Improve basic_auth exampleAdam Cammmack
Some web browsers will now prompt for user name and password
2013-02-06Elixir hello world exampleYurii Rashkovskii
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.