out of curiosity - why is this global RequestConte...
# http4k
s
out of curiosity - why is this global RequestContexts store with a concurrent hashmap needed? Wouldn't it just be enough to attach an immutable
Map<Key,Any>
as context to each request?
🤔 1
a
As much as that would simplify things, my guess is that it makes no sense to expose such a thing to clients; only relevant to servers.
s
it would allow to pass information between filters immutable, without accessing a concurrent, shared data structure
🤷 1