Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/en/docs/volo/volo-http/tutorials/response.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ In the framework, types such as `Form`, `Json`, etc. also implement `IntoRespons

```rust
use volo_http::{
json::Json,
server::{
extract::Json,
route::{get, post, Router},
IntoResponse,
},
Expand Down
4 changes: 2 additions & 2 deletions content/en/docs/volo/volo-http/tutorials/route.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,10 @@ use std::convert::Infallible;

use volo_http::{
context::ServerContext,
json::Json,
request::ServerRequest,
response::ServerResponse,
server::{
extract::Json,
route::{post_service, Router},
IntoResponse,
},
Expand Down Expand Up @@ -410,4 +410,4 @@ pub fn json_test_router() -> Router {
}
```

The final run is expected to be consistent with `json_get` and `json_post`.
The final run is expected to be consistent with `json_get` and `json_post`.
2 changes: 1 addition & 1 deletion content/zh/docs/volo/volo-http/tutorials/response.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ async fn teapot() -> StatusCode { StatusCode::IM_A_TEAPOT }

```rust
use volo_http::{
json::Json,
server::{
extract::Json,
route::{get, post, Router},
IntoResponse,
},
Expand Down
4 changes: 2 additions & 2 deletions content/zh/docs/volo/volo-http/tutorials/route.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ use std::convert::Infallible;

use volo_http::{
context::ServerContext,
json::Json,
request::ServerRequest,
response::ServerResponse,
server::{
extract::Json,
route::{post_service, Router},
IntoResponse,
},
Expand Down Expand Up @@ -406,4 +406,4 @@ pub fn json_test_router() -> Router {
}
```

最终运行的效果预期与 `json_get` 和 `json_post` 一致
最终运行的效果预期与 `json_get` 和 `json_post` 一致
Loading