Download:
child 2:1381141bb225
parent 0:96660b4682ba
1:47fa89cb7b64
Anton Shestakov <engored@ya.ru>, Sat, 12 Jan 2013 17:43:15 +0900
Docs.

3 файлов изменено, 59 вставок(+), 0 удалений(-) [+]
README.md file | annotate | diff | comparison | revisions
async-http-demo/README.md file | annotate | diff | comparison | revisions
http-methods-demo/README.md file | annotate | diff | comparison | revisions
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/README.md Sat Jan 12 17:43:15 2013 +0900
@@ -0,0 +1,1 @@
+Interesting experiments, code snippets and gotchas go in this repository.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/async-http-demo/README.md Sat Jan 12 17:43:15 2013 +0900
@@ -0,0 +1,30 @@
+[Tornado][tornado] app demonstrating asynchronous IO, processing data
+from remote resource and @tornado.web.asynchronous decorator.
+
+Shows current air temperature for Moscow, Russia.
+
+In no way I encourage using regexes to parse HTML; just imagine there some
+magic instead.
+
+One of the older demos.
+
+Complexity: ★★☆☆☆
+
+
+Requirements
+------------
+
+Python (2 or 3), [Tornado][tornado], browser.
+
+
+Effects
+-------
+
+- Fetching data doesn't block the entire app, so you can open multiple tabs
+ and F5 them all at once, the app will send multiple requests in parallel.
+
+- Demonstrates a way to process data in Tornado when using asynchronous IO
+ via callbacks.
+
+
+[tornado]: http://www.tornadoweb.org/
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/http-methods-demo/README.md Sat Jan 12 17:43:15 2013 +0900
@@ -0,0 +1,28 @@
+Server and client app demonstrating [Tornado][tornado]'s support of various
+HTTP methods.
+
+Uses tornado.httpclient.AsyncHTTPClient.
+
+One of the older demos.
+
+Complexity: ★☆☆☆☆
+
+
+Requirements
+------------
+
+Python (2 or 3), [Tornado][tornado], browser. Launch both server.py and
+client.py.
+
+
+Effects
+-------
+
+- Visiting one of urls defined in client.py (`/get`, `/post`, etc) will
+ fetch and display response from server.py app.
+
+- Even though server.py answers with some data in case of HEAD request, it
+ never reaches the client.py.
+
+
+[tornado]: http://www.tornadoweb.org/