actix-web3-CN-doc
所属分类:Web3.0
开发工具:Rust
文件大小:102KB
下载次数:0
上传日期:2021-01-11 05:45:30
上 传 者:
sh-1993
说明: Rust,activ-web3.0,演示,CN文档
(Rust, actix-web3.0, demo, CN document)
文件列表:
Cargo.lock (52369, 2021-01-11)
Cargo.toml (672, 2021-01-11)
LICENSE (1063, 2021-01-11)
doc (0, 2021-01-11)
doc\Application.md (7843, 2021-01-11)
doc\AutoReloading.md (600, 2021-01-11)
doc\ConnectionLifecycle.md (1211, 2021-01-11)
doc\Databases.md (3059, 2021-01-11)
doc\Errors.md (8134, 2021-01-11)
doc\Extractors.md (9171, 2021-01-11)
doc\GettingStarted.md (2434, 2021-01-11)
doc\HTTP2.md (1595, 2021-01-11)
doc\HTTPServerInitialization.md (391, 2021-01-11)
doc\Handlers.md (3863, 2021-01-11)
doc\Middleware.md (10281, 2021-01-11)
doc\Requests.md (4354, 2021-01-11)
doc\Responses.md (5765, 2021-01-11)
doc\Server.md (8624, 2021-01-11)
doc\StaticFiles.md (3306, 2021-01-11)
doc\Testing.md (5329, 2021-01-11)
doc\URLDispatch.md (22721, 2021-01-11)
doc\Webscokets.md (1874, 2021-01-11)
doc\WelcomeToActix.md (560, 2021-01-11)
doc\WhatIsActix.md (1067, 2021-01-11)
images (0, 2021-01-11)
images\connection_accept.svg (14953, 2021-01-11)
images\connection_overview.svg (15001, 2021-01-11)
images\connection_request.svg (15465, 2021-01-11)
images\connection_worker.svg (15842, 2021-01-11)
images\http_server.svg (16266, 2021-01-11)
src (0, 2021-01-11)
src\bin (0, 2021-01-11)
src\bin\application.rs (6420, 2021-01-11)
src\bin\errors_custom_error_response.rs (2516, 2021-01-11)
src\bin\extractors_application_state_arc.rs (922, 2021-01-11)
src\bin\extractors_application_state_cell.rs (903, 2021-01-11)
src\bin\extractors_json.rs (1028, 2021-01-11)
... ...
# actix-web 3.0 中文文档
## 1.说明
基本上算是翻译了官文档,但是示例并不一定和官方的相同. 所有的示例代码都源自官方文档中的示例,但又不完全与之相同.
算是一边学习一边理解写出来的demo代码且全部都能正常运行.
可以使用如下命令 + 指定文件名执行并查看结果:
```shell script
cargo run --bin hello_world
```
**另外:** `Actix-Web` 的网络部分是基于[Tokio](https://tokio.rs/tokio/tutorial) 来实现的. 因此要想更加深入的了解`Actix-web`的实现细节, `Tokio`是你
必须要学习和了解的框架. `Tokio` 的中文文档指南请参考: [这里](https://github.com/dslchd/tokio-cn-doc).
## 2.文档索引
### 介绍(Introduction)
[欢迎(Welcome)](doc/WelcomeToActix.md)
[什么是Actix(What is Actix)](doc/WhatIsActix.md)
### 基础(Basics)
[起步(Getting Started)](doc/GettingStarted.md)
[应用(Application)](doc/Application.md)
[服务器(Server)](doc/Server.md)
[处理器(Handlers)](doc/Handlers.md)
[提取器(Extractors)](doc/Extractors.md)
### 高级(Advanced)
[错误(Errors)](doc/Errors.md)
[URL分发(URL Dispatch)](doc/URLDispatch.md)
[请求(Requests)](doc/Requests.md)
[响应(Responses)](doc/Responses.md)
[测试(Testing)](doc/Testing.md)
[中间件(Middleware)](doc/Middleware.md)
[静态文件(Static Files)](doc/StaticFiles.md)
### 协议(Protocols)
[Websockets](doc/Webscokets.md)
[HTTP/2](doc/HTTP2.md)
## 模式(Patterns)
[自动重载(Auto-Reloading)](doc/AutoReloading.md)
[数据库(Databases)](doc/Databases.md)
## 图解(Diagrams)
[HTTP服务初始化(HTTP Server Initialization)](doc/HTTPServerInitialization.md)
[链接生命周期(Connection Lifecycle)](doc/ConnectionLifecycle.md)
## API文档
[actix](https://docs.rs/actix)
[actix-web](https://docs.rs/actix-web/)
## 3.其它
由于水平有限,在翻译过程中过程中难免有错误或遗漏,可以发现后及时向我提出(提 issue).
希望此文档能给不想看英文原文或英文不太好的朋友, 在使用或学习 `Actix-web` 与 `Rust` 来开发Web应用时带来帮助,
大家共同提高, 为Rust的流行作出丁点贡献.
**如果觉得给你的学习带来了帮助, 可以帮忙点个star, 这将是我一直同步更新下去的动力.**
近期下载者:
相关文件:
收藏者: