Tornado 4.5 Documentation
Sometimes a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving for more details. • websocket_ping_interval: If set to a number, all websockets will be pinged every n seconds. This can help keep the connection alive through certain proxy servers which close idle connections request_callable) ]) def request_callable(request): request.write(b"HTTP/1.1 200 OK\r\nContent-Length: 2\r\n\r\nOK") request.finish() 3. Another Router instance: router = RuleRouter([ Rule(PathMatches("/router0 码力 | 222 页 | 833.04 KB | 1 年前3
 Tornado 5.1 Documentation
Sometimes a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving for more details. • websocket_ping_interval: If set to a number, all websockets will be pinged every n seconds. This can help keep the connection alive through certain proxy servers which close idle connections request_callable) ]) def request_callable(request): request.write(b"HTTP/1.1 200 OK\r\nContent-Length: 2\r\n\r\nOK") request.finish() 3. Another Router instance: router = RuleRouter([ Rule(PathMatches("/router0 码力 | 243 页 | 895.80 KB | 1 年前3
 Tornado 6.0 Documentation
Sometimes a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving for more details. • websocket_ping_interval: If set to a number, all websockets will be pinged every n seconds. This can help keep the connection alive through certain proxy servers which close idle connections request_callable) ]) def request_callable(request): request.write(b"HTTP/1.1 200 OK\r\nContent-Length: 2\r\n\r\nOK") request.finish() 3) Another Router instance: router = RuleRouter([ Rule(PathMatches("/router0 码力 | 245 页 | 885.76 KB | 1 年前3
 Tornado 6.1 Documentation
Sometimes a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving for more details. • websocket_ping_interval: If set to a number, all websockets will be pinged every n seconds. This can help keep the connection alive through certain proxy servers which close idle connections request_callable) ]) def request_callable(request): request.write(b"HTTP/1.1 200 OK\r\nContent-Length: 2\r\n\r\nOK") request.finish() 3) Another Router instance: router = RuleRouter([ Rule(PathMatches("/router0 码力 | 245 页 | 904.24 KB | 1 年前3
 Tornado 6.5 DocumentationSometimes a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving parameter permanent which you can use to indicate that the redirection is considered permanent. The de- fault value of permanent is False, which generates a 302 Found HTTP response code and is appropriate example (note that a StaticFileHandler can be installed automatically with the static_path setting de- scribed below): application = web.Application([ (r"/static/(.*)", web.StaticFileHandler, {"path":0 码力 | 272 页 | 1.12 MB | 3 月前3
 Tornado 6.4 Documentation
Sometimes a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving parameter permanent which you can use to indicate that the redirection is considered permanent. The de- fault value of permanent is False, which generates a 302 Found HTTP response code and is appropriate example (note that a StaticFileHandler can be installed automatically with the static_path setting de- scribed below): application = web.Application([ (r"/static/(.*)", web.StaticFileHandler, {"path":0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.2 Documentation
Sometimes a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving parameter permanent which you can use to indicate that the redirection is considered permanent. The de- fault value of permanent is False, which generates a 302 Found HTTP response code and is appropriate example (note that a StaticFileHandler can be installed automatically with the static_path setting de- scribed below): application = web.Application([ (r"/static/(.*)", web.StaticFileHandler, {"path":0 码力 | 260 页 | 1.06 MB | 1 年前3
 Tornado 6.4 Documentation
Sometimes a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving parameter permanent which you can use to indicate that the redirection is considered permanent. The de- fault value of permanent is False, which generates a 302 Found HTTP response code and is appropriate example (note that a StaticFileHandler can be installed automatically with the static_path setting de- scribed below): application = web.Application([ (r"/static/(.*)", web.StaticFileHandler, {"path":0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.4 Documentation
Sometimes a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving parameter permanent which you can use to indicate that the redirection is considered permanent. The de- fault value of permanent is False, which generates a 302 Found HTTP response code and is appropriate example (note that a StaticFileHandler can be installed automatically with the static_path setting de- scribed below): application = web.Application([ (r"/static/(.*)", web.StaticFileHandler, {"path":0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.3 Documentation
Sometimes a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving parameter permanent which you can use to indicate that the redirection is considered permanent. The de- fault value of permanent is False, which generates a 302 Found HTTP response code and is appropriate example (note that a StaticFileHandler can be installed automatically with the static_path setting de- scribed below): application = web.Application([ (r"/static/(.*)", web.StaticFileHandler, {"path":0 码力 | 264 页 | 1.06 MB | 1 年前3
共 20 条
- 1
 - 2
 













