https://kotlinlang.org logo
#http4k
Title
# http4k
s

Stefan

07/12/2021, 9:58 AM
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

Andrew O'Hara

07/12/2021, 2:06 PM
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

Stefan

07/12/2021, 2:10 PM
it would allow to pass information between filters immutable, without accessing a concurrent, shared data structure
🤷 1
7 Views