Create a new RouterContextProvider instance
Optionalinit: Map<RouterContext<unknown>, unknown>An optional initial context map to populate the provider with
Access a value from the context. If no value has been set for the context,
it will return the context's defaultValue if provided, or throw an error
if no defaultValue was set.
The context to get the value for
The value for the context, or the context's defaultValue if no
value was set
Set a value for the context. If the context already has a value set, this will overwrite it.
The context to set the value for
The value to set for the context
Provides methods for writing/reading values in application context in a type-safe way. Primarily for usage with middleware.
Example
Mode
framework
Mode
data