I use request context for that kind of thing, seem...
# http4k
j
I use request context for that kind of thing, seems to work well. As far as each request is concerned it's not global shared state, you can't reach across requests, it's just a mechanism to attach stuff alongside a request, without modifying the request and smuggling in extra stuff in fictitious headers and so on. It's also type safe, so no need for a "map of stuff"