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

Sending request headers #30

Open
Oduig opened this issue Aug 19, 2021 · 1 comment
Open

Sending request headers #30

Oduig opened this issue Aug 19, 2021 · 1 comment

Comments

@Oduig
Copy link

Oduig commented Aug 19, 2021

We have a use case where it is required to set certain request headers, based on a key or value from Kafka.

Would it be possible to add this feature? I can see several ways to do it.

  1. Automatically use fields in the record key as headers. This may make sense but it is prone to sending unnecessary headers.
  2. Specify a certain prefix for headers in the record key, e.g. http_header_*. When a field matches this pattern, send it as a request header, removing the http_header_ prefix.
  3. Instead of sending the value as a request body, use nested fields "headers" and "body" to describe the payload.
@ivanyu
Copy link
Collaborator

ivanyu commented Sep 23, 2021

Hi @Oduig
Thank you. Such functionality makes sense. I've added it to our backlog and we'll think how to best implement it.

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

2 participants