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

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