Please refer to the following link
https://crates.io/crates/starberry
The standard starberry middleware library
Cors
Safty setting for APP & Cors support
We are now able to add config to both APP and urls. For APP, we are able to set the config/static by using methods
pub static APP: SApp = new;
While for the Url, we are able to store params by using the #[url] macro
async
async
Session (Based On Cookie)
(Learn how to use this by looking at the following repo as example)
https://github.com/Field-of-Dreams-Studio/sfx
Session (Based on Cache, Deadlock is possible do not use this)
Function
By using Session middleware, you will be able to store session in the memory
APP Statics & Configs
session_ttl: u64, set the time for session to expire
Request Context
SessionRW, access the Session content from this
Example
pub static APP: SApp = new;