2012-02-20 08:42:45 +01:00
|
|
|
Cowboy examples
|
|
|
|
===============
|
|
|
|
|
2012-10-01 16:04:27 -07:00
|
|
|
* [hello_world](./examples/hello_world):
|
2012-09-27 21:32:11 -07:00
|
|
|
simplest example application
|
2012-02-20 08:42:45 +01:00
|
|
|
|
2012-10-01 16:04:27 -07:00
|
|
|
* [echo_get](./examples/echo_get):
|
2012-09-27 21:32:11 -07:00
|
|
|
parse and echo a GET query string
|
|
|
|
|
2012-10-01 16:04:27 -07:00
|
|
|
* [echo_post](./examples/echo_post):
|
2012-09-27 21:32:11 -07:00
|
|
|
parse and echo a POST parameter
|
|
|
|
|
2012-10-01 16:04:27 -07:00
|
|
|
* [rest_hello_world](./examples/rest_hello_world):
|
2012-10-01 13:21:45 -07:00
|
|
|
return the data type that matches the request type (ex: html, text, json...)
|
|
|
|
|
2012-10-01 16:04:27 -07:00
|
|
|
* [chunked_hello_world](./examples/chunked_hello_world):
|
2012-09-27 21:32:11 -07:00
|
|
|
demonstrates chunked data transfer with two one-second delays
|
|
|
|
|
2012-10-01 16:04:27 -07:00
|
|
|
* [static](./examples/static):
|
2012-09-27 21:32:11 -07:00
|
|
|
an example file server
|