mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 22:01:50 +01:00
add links to migration
This commit is contained in:
parent
33326ea41b
commit
8d905c8504
20
MIGRATION.md
20
MIGRATION.md
@ -24,13 +24,27 @@
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
* Middleware trait uses `&mut self` instead of `&self`.
|
* [Middleware](https://actix.rs/actix-web/actix_web/middleware/trait.Middleware.html)
|
||||||
|
trait uses `&mut self` instead of `&self`.
|
||||||
|
|
||||||
* Removed `Route::with2()` and `Route::with3()` use tuple of extractors instead.
|
* Removed `Route::with2()` and `Route::with3()` use tuple of extractors instead.
|
||||||
|
|
||||||
`fn index((query, json): (Query<..>, Json<MyStruct)) -> impl Responder`
|
instead of
|
||||||
|
|
||||||
|
```rust
|
||||||
|
fn index(query: Query<..>, info: Json<MyStruct) -> impl Responder {}
|
||||||
|
```
|
||||||
|
|
||||||
|
use tuple of extractors:
|
||||||
|
|
||||||
|
```rust
|
||||||
|
fn index((query, json): (Query<..>, Json<MyStruct)) -> impl Responder {}
|
||||||
|
```
|
||||||
|
|
||||||
|
* Removed deprecated `HttpServer::threads()`, use
|
||||||
|
[HttpServer::workers()](https://actix.rs/actix-web/actix_web/server/struct.HttpServer.html#method.workers) instead.
|
||||||
|
|
||||||
|
|
||||||
* Removed deprecated `HttpServer::threads()`, use `HttpServer::workers()` instead.
|
|
||||||
|
|
||||||
|
|
||||||
## 0.6
|
## 0.6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user