allow passing headers to subgraphs#53
Conversation
Of course. That’s why it’s a WIP ;) |
|
A few notes on the implementation:
So I'm not sure about 1, I'm hoping that it's OK to just forward all headers (except a few) but I can already think about problems this may cause downstream. The problem with 1 can be partially solved with 2, but it adds complexity that may not be needed at this stage. I don't think we should transform headers here - if it's needed it should happen before we get here. Providing some configuration would probably be a good idea - I'll try to add this without adding complexity. I'm hoping this can be simple enough to be serialized and provided in a platformatic configuration in the end. |
|
IMHO having a callback to transform the headers would solve all the configurability problems. However, keep this implementation as simple as possible, and we can add that later on if needed. |
This will simplify passing more arguments in the future (I'm looking at you `variables`)
|
Any help with the tests? |
|
Sorry. I’ll try to get to it today. |
headers downstreamheaders to subgraphs
|
Sorry @mcollina - just pushed a change renaming the test to align with other test names |
see platformatic/platformatic#1966