You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And create a new one along side along the lines of
pubfnbuild(generator:ContextGenerator<R,T>) -> App<R,T>{App{_route_parser:RouteParser::new(),context_generator: generator // Note that internally we can update this to be a ContextGenerator}}
Hi!
I would like to share a state between requests storing it into request context.
The proposal is to create a new trait that implements a method
generate
The change is about
create a new constructor
create a basic implementation of ContextGenerator in order to support the older constructor
https://github.com/trezm/Thruster/blob/9ddae50167e3332fdea23bedfc1a36fff579b5a2/src/app.rs#L87
https://github.com/trezm/Thruster/blob/9ddae50167e3332fdea23bedfc1a36fff579b5a2/src/app.rs#L103
https://github.com/trezm/Thruster/blob/9ddae50167e3332fdea23bedfc1a36fff579b5a2/src/app.rs#L196
The text was updated successfully, but these errors were encountered: