Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpolate headers send by HTTP Action #123

Open
marcinus opened this issue Mar 13, 2020 · 0 comments
Open

Interpolate headers send by HTTP Action #123

marcinus opened this issue Mar 13, 2020 · 0 comments

Comments

@marcinus
Copy link
Contributor

Is your feature request related to a problem? Please describe.
HTTP Action supports path interpolation and is soon to support body interpolation (string or JSON).
In principle, it is a possible use case that some header value (or maybe even header name) could be interpolated from ClientRequest/Fragments data, e.g.:

Service A responds with authorization token that needs to be passed in header `Auth-Token` when calling Service B.

Describe the solution you'd like
I'd like to have a possibility to enable header interpolation (interpolateHeaders flag?)
Best case, I'd like to create whitelist/blacklist for the headers that could be interpolated.
This should also cover the additional headers that I specify in the configuration.

Describe alternatives you've considered
It's feasible not to have header interpolation at all, but having this option allows to directly set header values based on:

  • action's results
  • endpoint responses
  • HTTP proxy values
  • static values
  • combinations of the above

Without this functionality, it's not clear to me whether it can be overriden without writing a custom HTTP action, which would be painful for the developer using Knot.x.

Additional context
See #73 and related PR #120

@marcinus marcinus changed the title Customize reduction operation for CompositeNodes Interpolate headers send by HTTP Action Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant