Tornado 6.5 Documentation
developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived 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() developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
org/wiki/FriendFeed]. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling [https://en.wikipedia.org/wiki/Push_technology#Long_polling] 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) 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 — Flexible0 码力 | 437 页 | 405.14 KB | 2 月前3Rust 程序设计语言 简体中文版 1.85.0
本地文档 安装程序也自带一份文档的本地拷贝,可以离线阅读。运行 rustup doc 在浏览器中查看本地 文档。 任何时候,如果你拿不准标准库中的类型或函数的用途和用法,请查阅应用程序接口 (application programming interface,API)文档! 文本编辑器和集成开发环境(Integrated Development Environments, IDE) 本书不会假设你使用何种工具来编写 中调用哪个方法,因 此每个 crate 有使用说明文档。Cargo 的另一个很棒的功能是运行 cargo doc --open 命令来构建所有本地依赖提供的文档并在浏览器中打开。例如,假设你对 rand crate 中的其他功能感兴趣,你可以运行 cargo doc --open 并点击左侧导航栏中的 rand。 新增加的第二行代码打印出了秘密数字。这在开发程序时很有用,因为可以测试它,不过在最 让我们来看看创建包的时候会发生什么。首先,我们输入命令 cargo new my-project: $ cargo new my-project Created binary (application) `my-project` package $ ls my-project Cargo.toml src $ ls my-project/src main.rs 运行了这条命令后,我们先用0 码力 | 562 页 | 3.23 MB | 9 天前3
共 3 条
- 1