Is there a way to put a keyword and a value in all parts of the middleware chain in a way that I can assoc some context in between the requests?
if you want to store some state between requests you need something like session-middleware
I did something like this 🙂
using reitit router with middlewares?
only using a interleaving transform middleware?
:reitit.middleware/transform
how to deal with this when I get errors?
sorry, I'm not really understanding you here. are you asking one question or multiple ones?
can you describe what you have, and what you want to accomplish?