mirror of
https://github.com/actix/actix-web.git
synced 2024-12-24 00:50:36 +00:00
update migration
This commit is contained in:
parent
2f476021d8
commit
0ff5f5f448
1 changed files with 11 additions and 0 deletions
11
MIGRATION.md
11
MIGRATION.md
|
@ -1,3 +1,14 @@
|
||||||
|
## 0.7
|
||||||
|
|
||||||
|
* Middleware trait uses `&mut self` instead of `&self`.
|
||||||
|
|
||||||
|
* Removed `Route::with2()` and `Route::with3()` use tuple of extractors instead.
|
||||||
|
|
||||||
|
`fn index((query, json): (Query<..>, Json<MyStruct)) -> impl Responder`
|
||||||
|
|
||||||
|
* Removed deprecated `HttpServer::threads()`, use `HttpServer::workers()` instead.
|
||||||
|
|
||||||
|
|
||||||
## Migration from 0.5 to 0.6
|
## Migration from 0.5 to 0.6
|
||||||
|
|
||||||
* `Path<T>` extractor return `ErrorNotFound` on failure instead of `ErrorBadRequest`
|
* `Path<T>` extractor return `ErrorNotFound` on failure instead of `ErrorBadRequest`
|
||||||
|
|
Loading…
Reference in a new issue