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

Unable to get headers and statuscode using the examples #837

Open
Zeychiel opened this issue Jan 18, 2024 · 1 comment
Open

Unable to get headers and statuscode using the examples #837

Zeychiel opened this issue Jan 18, 2024 · 1 comment
Labels

Comments

@Zeychiel
Copy link

Zeychiel commented Jan 18, 2024

Environment info:

  • KrakenD version: 2.5.0
  • System info: docker
  • Backend technology: Go

Describe what are you trying to do:
I try to catch 201 responses from the backend to add a dedicated header ; using a response modifier
but
.Headers() and .StatusCode() on input.(ResponseWrapper) are nil ; .Data() on the other hand does as expected

This issue: #488 (comment) says that this is by design ; but this example from the documentation: https://www.krakend.io/docs/extending/plugin-modifiers/#building-the-plugin
image
says otherwise.

Is the documentation outdated and it is by design that the values are empty when NOT using no-op ?

Thanks,

@nsitbon
Copy link

nsitbon commented Mar 28, 2024

Hi @Zeychiel you're right that's by design and yes the documentation is wrong.
Best regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants