Tornado 6.0 Documentation
Linux (with epoll) and BSD (with kqueue) are recommended for production deployment (even though Mac OS X is derived from BSD and supports kqueue, its networking performance is generally poor so it is recommended Asynchronous HTTP client tornado.httputil — Manipulate HTTP headers and URLs tornado.http1connection – HTTP/1.x client/server implementation Asynchronous networking tornado.ioloop — Main event loop tornado.iostream inner loop: # Simplified inner loop of tornado.gen.Runner def run(self): # send(x) makes the current yield return x. # It returns when the next yield is reached future = self.gen.send(self.next)0 码力 | 869 页 | 692.83 KB | 1 年前3
Tornado 6.1 Documentation
Asynchronous HTTP client tornado.httputil — Manipulate HTTP headers and URLs tornado.http1connection – HTTP/1.x client/server implementation Asynchronous networking tornado.ioloop — Main event loop tornado.iostream inner loop: # Simplified inner loop of tornado.gen.Runner def run(self): # send(x) makes the current yield return x. # It returns when the next yield is reached future = self.gen.send(self.next) call coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because #0 码力 | 931 页 | 708.03 KB | 1 年前3
Tornado 4.5 Documentation
Linux (with epoll) and BSD (with kqueue) are recommended for production deployment (even though Mac OS X is derived from BSD and supports kqueue, its networking performance is generally poor so it is recommended Asynchronous HTTP client tornado.httputil — Manipulate HTTP headers and URLs tornado.http1connection – HTTP/1.x client/server implementation Asynchronous networking tornado.ioloop — Main event loop tornado.iostream inner loop: # Simplified inner loop of tornado.gen.Runner def run(self): # send(x) makes the current yield return x. # It returns when the next yield is reached future = self.gen.send(self.next)0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 5.1 Documentation
download a copy of the source tarball or clone the git repository as well. Prerequisites: Tornado 5.x runs on Python 2.7, and 3.4+ (Tornado 6.0 will require Python 3.5+; Python 2 will no longer be supported) Linux (with epoll) and BSD (with kqueue) are recommended for production deployment (even though Mac OS X is derived from BSD and supports kqueue, its networking performance is generally poor so it is recommended Release 5.1.1 # Simplified inner loop of tornado.gen.Runner def run(self): # send(x) makes the current yield return x. # It returns when the next yield is reached future = self.gen.send(self.next) def0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 6.0 Documentation
Linux (with epoll) and BSD (with kqueue) are recommended for production deployment (even though Mac OS X is derived from BSD and supports kqueue, its networking performance is generally poor so it is recommended inner loop: # Simplified inner loop of tornado.gen.Runner def run(self): # send(x) makes the current yield return x. # It returns when the next yield is reached future = self.gen.send(self.next) def call coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 5.1 Documentation
clone the git repository [https://github.com/tornadoweb/tornado] as well. Prerequisites: Tornado 5.x runs on Python 2.7, and 3.4+ (Tornado 6.0 will require Python 3.5+; Python 2 will no longer be supported) Linux (with epoll) and BSD (with kqueue) are recommended for production deployment (even though Mac OS X is derived from BSD and supports kqueue, its networking performance is generally poor so it is recommended Asynchronous HTTP client tornado.httputil — Manipulate HTTP headers and URLs tornado.http1connection – HTTP/1.x client/server implementation Asynchronous networking tornado.ioloop — Main event loop tornado.iostream0 码力 | 359 页 | 347.32 KB | 1 年前3
Tornado 6.1 Documentation
inner loop: # Simplified inner loop of tornado.gen.Runner def run(self): # send(x) makes the current yield return x. # It returns when the next yield is reached future = self.gen.send(self.next) def call coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine that do not use form-encoded arguments), the XSRF token may also be passed via an HTTP header named X-XSRFToken. The XSRF cookie is normally set when xsrf_form_html is used, but in a pure-JavaScript application0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 4.5 Documentation
Linux (with epoll) and BSD (with kqueue) are recommended for production deployment (even though Mac OS X is derived from BSD and supports kqueue, its networking performance is generally poor so it is recommended inner loop: # Simplified inner loop of tornado.gen.Runner def run(self): # send(x) makes the current yield return x. # It returns when the next yield is reached future = self.gen.send(self.next) def coroutines in the right way, or you may have errors that go unnoticed: @gen.coroutine def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine0 码力 | 222 页 | 833.04 KB | 1 年前3
Tornado 6.5 Documentationinner loop: # Simplified inner loop of tornado.gen.Runner def run(self): # send(x) makes the current yield return x. # It returns when the next yield is reached future = self.gen.send(self.next) def call coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine function, e.g. . json_encode can be used to escape strings, numbers, lists, and dicts. In this example, the JavaScript variable x will be the corresponding0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.4 Documentation
inner loop: # Simplified inner loop of tornado.gen.Runner def run(self): # send(x) makes the current yield return x. # It returns when the next yield is reached future = self.gen.send(self.next) def call coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine that do not use form-encoded arguments), the XSRF token may also be passed via an HTTP header named X-XSRFToken. The XSRF cookie is normally set when xsrf_form_html is used, but in a pure-JavaScript application0 码力 | 268 页 | 1.09 MB | 1 年前3
共 20 条
- 1
- 2













