1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

Implement register_data method on Resource and Scope. (#1094)

* Implement `register_data` method on `Resource` and `Scope`.

* Split Scope::register_data tests out from Scope::data tests.

* CHANGES.md: Mention {Scope,Resource}::register_data.
This commit is contained in:
Jim Blandy
2019-09-17 17:36:39 -07:00
committed by Nikolay Kim
parent b3783b403e
commit 58c7065f08
3 changed files with 76 additions and 5 deletions

View File

@ -1,10 +1,18 @@
# Changes
## not released yet
### Added
* Add `Scope::register_data` and `Resource::register_data` methods, parallel to
`App::register_data`.
## [1.0.8] - 2019-09-xx
### Added
* Add `middleware::Conditon` that conditionally enables another middleware
* Add `middleware::Condition` that conditionally enables another middleware
### Fixed
* Allow to re-construct `ServiceRequest` from `HttpRequest` and `Payload`