mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 00:21:08 +01:00
update changelog
This commit is contained in:
parent
4a39216aa7
commit
593a66324f
12
CHANGES.md
12
CHANGES.md
@ -6,20 +6,28 @@
|
|||||||
|
|
||||||
* Re-export `actix::prelude::*` as `actix_web::actix` module.
|
* Re-export `actix::prelude::*` as `actix_web::actix` module.
|
||||||
|
|
||||||
|
* `HttpRequest::url_for_static()` for a named route with no variables segments
|
||||||
|
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
* Migrate to tokio
|
|
||||||
|
|
||||||
* Min rustc version is 1.26
|
* Min rustc version is 1.26
|
||||||
|
|
||||||
|
* Use tokio instead of tokio-core
|
||||||
|
|
||||||
* Use `&mut self` instead of `&self` for Middleware trait
|
* Use `&mut self` instead of `&self` for Middleware trait
|
||||||
|
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
* Remove `Route::with2()` and `Route::with3()` use tuple of extractors instead.
|
* Remove `Route::with2()` and `Route::with3()` use tuple of extractors instead.
|
||||||
|
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* `HttpRequest::url_for()` for a named route with no variables segments #265
|
||||||
|
|
||||||
|
|
||||||
## [0.6.10] - 2018-05-24
|
## [0.6.10] - 2018-05-24
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
fn index(query: Query<..>, info: Json<MyStruct) -> impl Responder {}
|
fn index(query: Query<..>, info: Json<MyStruct) -> impl Responder {}
|
||||||
```
|
```
|
||||||
|
|
||||||
use tuple of extractors:
|
use tuple of extractors and use `.with()` for registration:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
fn index((query, json): (Query<..>, Json<MyStruct)) -> impl Responder {}
|
fn index((query, json): (Query<..>, Json<MyStruct)) -> impl Responder {}
|
||||||
|
Loading…
Reference in New Issue
Block a user