Permalink
Browse files

Some cleanup

  • Loading branch information...
1 parent 6a31d48 commit 430e428c4aa5128861b43426ef3e9fe1e8912b44 @robertmeta committed Mar 23, 2012
View
@@ -42,7 +42,7 @@ Examples List
Links
===============================================================================
* Cowboy -> https://github.com/extend/cowboy
-* Cowboy Examples -> https://github.com/extend/cowboy_examples
+* Cowboy Examples -> https://github.com/extend/cowboy\_examples
* Webmachine (what Cowboy REST clones) -> http://wiki.basho.com/Webmachine.html
* Misultin -> https://github.com/ostinelli/misultin
* Misultin Examples ->
@@ -52,10 +52,11 @@ Links
TODO
===============================================================================
-* Access Log
+* Access Log -> Hard to do right now due to lack of a good place to hook
* Comet
* Compression
* Cookies
+* EventSource
* File (binary save)
* Multiple Servers (concurrently)
* Sessions
@@ -8,7 +8,9 @@ handle(Req, State) ->
{ok, Reply} = cowboy_http_req:chunked_reply(200, Req),
cowboy_http_req:chunk("Hello\r\n", Reply),
timer:sleep(1000),
- cowboy_http_req:chunk("World!", Reply),
+ cowboy_http_req:chunk("World, ", Reply),
+ timer:sleep(1000),
+ cowboy_http_req:chunk("Chunked!", Reply),
{ok, Reply, State}.
terminate(_Req, _State) ->
@@ -5,7 +5,7 @@ init({ssl, http}, Req, _Opts) ->
{ok, Req, undefined_state}.
handle(Req, State) ->
- {ok, Reply} = cowboy_http_req:reply(200, [], <<"Hello World!">>, Req),
+ {ok, Reply} = cowboy_http_req:reply(200, [], <<"Hello World, SSL!">>, Req),
{ok, Reply, State}.
terminate(_Req, _State) ->
View
@@ -3,7 +3,6 @@
"apps/hello_world_rest",
"apps/hello_world_chunked",
"apps/hello_world_ssl",
- "apps/access_log",
"apps/upload",
"apps/echo_get",
"apps/echo_post",
View
@@ -4,7 +4,6 @@ erl ^
-pa apps/hello_world_ssl/ebin ^
-pa apps/hello_world_rest/ebin ^
-pa apps/hello_world_chunked/ebin ^
- -pa apps/access_log/ebin ^
-pa apps/upload/ebin ^
-pa apps/echo_get/ebin ^
-pa apps/echo_post/ebin ^

0 comments on commit 430e428

Please sign in to comment.