mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
![]() 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. |
||
---|---|---|
.. | ||
chunked_hello_world | ||
echo_get | ||
echo_post | ||
hello_world | ||
rest_hello_world | ||
static | ||
README.md |
Cowboy examples
-
hello_world: simplest example application
-
echo_get: parse and echo a GET query string
-
echo_post: parse and echo a POST parameter
-
rest_hello_world: return the data type that matches the request type (ex: html, text, json...)
-
chunked_hello_world: demonstrates chunked data transfer with two one-second delays
-
static: an example file server