Ziming Wu

Results comments of Ziming Wu

> @robjtede do you have a minimum code or reference for it? while checking the docs I cannot find it. `req.app_data()`

> @zimingWu are you sure that it is not just a getter but also a setter? my mistake. try `req.extensions_mut().insert( your app data )`?

> cannot we avoid `add to extensions on requests`? can we make `app_data` also setter? tell us what you want, instead of how you wish to implement. i think you...

> Hi there, I was searching similar to thing that you guys proposed as solution. The thing that I want to achieve is storing authenticated user in the request app_data....

> @zimingWu definitely works, thanks for the answer. I supposed to use the inserted data like calling `req.app_data::()` in middleware or using typing in the handler like > > ```rust...

I think `.data()` and `.app_data()` should be merged. Configs like `PayloadConfig` and `JsonConfig` are extracted from `Extensions`. They will be respected when using `.app_data()` only. There are examples of `JsonConfig`s,...