README.asciidoc 593 B

12345678910111213141516171819202122232425262728
  1. = Chunked hello world example
  2. To try this example, you need GNU `make` and `git` in your PATH.
  3. To build and run the example, use the following command:
  4. [source,bash]
  5. $ make run
  6. Then point your browser to http://localhost:8080
  7. or use `curl` to see the chunks arriving one at a time every second.
  8. == Example output
  9. [source,bash]
  10. ----
  11. $ time curl -i http://localhost:8080
  12. HTTP/1.1 200 OK
  13. transfer-encoding: chunked
  14. connection: keep-alive
  15. server: Cowboy
  16. date: Fri, 28 Sep 2012 04:24:16 GMT
  17. Hello
  18. World
  19. Chunked!
  20. curl -i http://localhost:8080 0.01s user 0.00s system 0% cpu 2.015 total
  21. ----