README.asciidoc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. = Cowboy examples
  2. * link:chunked_hello_world[]:
  3. demonstrate chunked data transfer with two one-second delays
  4. * link:compress_response[]:
  5. send a response body compressed if the client supports it
  6. * link:cookie[]:
  7. set cookies from server and client side
  8. * link:echo_get[]:
  9. parse and echo a GET query string
  10. * link:echo_post[]:
  11. parse and echo a POST parameter
  12. * link:error_hook[]:
  13. provide custom error pages
  14. * link:eventsource[]:
  15. eventsource emitter and consumer
  16. * link:file_server[]:
  17. file server with directory listing
  18. * link:hello_world[]:
  19. simplest example application
  20. * link:markdown_middleware[]:
  21. static file handler with markdown preprocessor
  22. * link:rest_basic_auth[]:
  23. basic HTTP authorization with REST
  24. * link:rest_hello_world[]:
  25. return the data type that matches the request type (ex: html, text, json)
  26. * link:rest_pastebin[]:
  27. create text objects and return the data type that matches the request type (html, text)
  28. * link:rest_stream_response[]:
  29. stream results from a data store
  30. * link:ssl_hello_world[]:
  31. simplest SSL application
  32. * link:upload[]:
  33. multipart/form-data upload
  34. * link:websocket[]:
  35. websocket example
  36. == Other languages
  37. * https://github.com/joshrotenberg/elixir_cowboy_examples[Elixir]
  38. * https://github.com/quasiquoting/lfe-cowboy-examples[LFE]