Tornado 6.5 Documentation
AsyncHTTPClient). • An asynchronous networking library including the classes IOLoop and IOStream, which serve as the building blocks for the HTTP components and can also be used to implement other protocols. Release 6.5.1 (continued from previous page) } } } Static files and aggressive file caching You can serve static files from Tornado by specifying the static_path setting in your application: settings = { with /static/ serve from that static directory, e.g. http:/ /localhost:8888/static/foo.png will serve the file foo.png from the specified static directory. We also au- tomatically serve /robots.txt and0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
AsyncHTTPClient). An asynchronous networking library including the classes IOLoop and IOStream, which serve as the building blocks for the HTTP components and can also be used to implement other protocols. proxy_pass http://frontends; } } } Static files and aggressive file cachingYou can serve static files from Tornado by specifying the static_path setting in your application: settings = { start with /static/ serve from that static directory, e.g. http://localhost:8888/static/foo.png will serve the file foo.png from the specified static directory. We also automatically serve /robots.txt and0 码力 | 437 页 | 405.14 KB | 2 月前3Rust 程序设计语言 简体中文版 1.85.0
{} fn seat_at_table() {} } mod serving { fn take_order() {} fn serve_order() {} fn take_payment() {} } } 示例 7-1:一个包含了其他内置了函数的模块的 front_of_house 模块 我们使用 add_to_waitlist │ └── seat_at_table └── serving ├── take_order ├── serve_order └── take_payment 示例 7-2: 示例 7-1 中代码的模块树 这个树展示了一些模块是如何被嵌入到另一个模块的(例如,hosting 嵌套在 front_of_house0 码力 | 562 页 | 3.23 MB | 9 天前3
共 3 条
- 1