Tornado 4.5 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": app = make_app() app.listen(8888) spider Structure of a Tornado web application Templates and UI Authentication and security Running and deploying Web framework tornado.web — RequestHandler and Application classes tornado.template — Flexible in the background Queue example - a concurrent web spider Structure of a Tornado web application The Application object Subclassing RequestHandler Handling request input Overriding RequestHandler methods0 码力 | 333 页 | 322.34 KB | 1 年前3Tornado 5.1 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": app = make_app() app.listen(8888) tornado cost of concurrent connections, Tornado uses a single-threaded event loop. This means that all application code should aim to be asynchronous and non-blocking because only one operation can be active at generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before0 码力 | 243 页 | 895.80 KB | 1 年前3Tornado 6.4 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) async def main(): app = make_app() app.listen(8888) await asyncio.Event() generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before run(main()) 6.1.5 Structure of a Tornado web application A Tornado web application generally consists of one or more RequestHandler subclasses, an Application object which routes incoming requests to handlers0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.4 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) async def main(): app = make_app() app.listen(8888) await asyncio.Event() generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before run(main()) 6.1.5 Structure of a Tornado web application A Tornado web application generally consists of one or more RequestHandler subclasses, an Application object which routes incoming requests to handlers0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.4 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) async def main(): app = make_app() app.listen(8888) await asyncio.Event() generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before run(main()) 6.1.5 Structure of a Tornado web application A Tornado web application generally consists of one or more RequestHandler subclasses, an Application object which routes incoming requests to handlers0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.5 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) async def main(): app = make_app() app.listen(8888) await asyncio.Event() generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before run(main()) 6.1.5 Structure of a Tornado web application A Tornado web application generally consists of one or more RequestHandler subclasses, an Application object which routes incoming requests to handlers0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.1 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": app = make_app() app.listen(8888) tornado cost of concurrent connections, Tornado uses a single-threaded event loop. This means that all application code should aim to be asynchronous and non-blocking because only one operation can be active at generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before0 码力 | 245 页 | 904.24 KB | 1 年前3Tornado 6.0 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": app = make_app() app.listen(8888) tornado cost of concurrent connections, Tornado uses a single-threaded event loop. This means that all application code should aim to be asynchronous and non-blocking because only one operation can be active at generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before0 码力 | 245 页 | 885.76 KB | 1 年前3Tornado 6.3 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) async def main(): app = make_app() app.listen(8888) await asyncio.Event() generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before run(main()) 6.1.5 Structure of a Tornado web application A Tornado web application generally consists of one or more RequestHandler subclasses, an Application object which routes incoming requests to handlers0 码力 | 264 页 | 1.06 MB | 1 年前3Tornado 4.5 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": app = make_app() app.listen(8888) tornado cost of concurrent connections, Tornado uses a single-threaded event loop. This means that all application code should aim to be asynchronous and non-blocking because only one operation can be active at generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before0 码力 | 222 页 | 833.04 KB | 1 年前3
共 20 条
- 1
- 2