headerMapRef Usage within HTTPConnector

Cantor, Scott cantor.2 at osu.edu
Mon Aug 9 20:00:12 UTC 2021

There's not anything designed to support dynamic headers, I explicitly ruled out trying to support token-based authentication schemes at this layer at the time so I could focus on getting it built and working. It's probably possible to plug something in at the HttpClient layer; whatever extensibility it has is possible to use.

I don't think any of Spring's simpler tricks would work here because even if the bean supplying the headers was not static or was proxied in some way, the target bean here is a singleton, so only has the dependency injected once. There probably is crazy trickery I'm less familiar with when proxying methods in beans but I don't know how to use them.

I imagine it wouldn't be that hard to build a hook for this at this point given that all the hard parts are done and I know the client better.

-- Scott

More information about the users mailing list