Loïc Hoguin ca98a86b30 Add HTML5 Video Example to the static example 12 years ago
..
chunked_hello_world 647e95aed1 Replace terminate/2 with terminate/3, adding a Reason 12 years ago
compress_response 647e95aed1 Replace terminate/2 with terminate/3, adding a Reason 12 years ago
cookie 647e95aed1 Replace terminate/2 with terminate/3, adding a Reason 12 years ago
echo_get 647e95aed1 Replace terminate/2 with terminate/3, adding a Reason 12 years ago
echo_post 647e95aed1 Replace terminate/2 with terminate/3, adding a Reason 12 years ago
hello_world 647e95aed1 Replace terminate/2 with terminate/3, adding a Reason 12 years ago
rest_hello_world 33461ecdbd Fix examples to follow new env tuple standard 12 years ago
static ca98a86b30 Add HTML5 Video Example to the static example 12 years ago
README.md 01f57ad65d Add optional automatic response body compression 12 years ago

README.md

Cowboy Examples

  • chunked_hello_world: demonstrates chunked data transfer with two one-second delays

  • compress_response send a response body compressed if the client supports it

  • cookie: set cookies from server and client side

  • echo_get: parse and echo a GET query string

  • echo_post: parse and echo a POST parameter

  • hello_world: simplest example application

  • rest_hello_world: return the data type that matches the request type (ex: html, text, json)

  • static: an example file server