1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 06:57:43 +02:00

Add Extensions::get_or_insert[_with]() methods (#3561)

* add get_or_insert and get_or_insert_with for Extensions

* add docs

* fix doctest

* docs: update changelog

* chore: simplify get_or_insert

---------

Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
Akos Vandra-Meyer
2025-02-09 23:04:21 +01:00
committed by GitHub
parent a4eaa7f0bb
commit 04533a15fa
2 changed files with 41 additions and 0 deletions

View File

@ -5,6 +5,7 @@
### Added
- Add `header::CLEAR_SITE_DATA` constant.
- Add `Extensions::get_or_insert[_with]()` methods.
### Changed