Open Zeychiel opened 8 months ago
Environment info:
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() oninput.(ResponseWrapper) are nil ; .Data() on the other hand does as expected
.Headers()
.StatusCode()
input.(ResponseWrapper)
.Data()
This issue: https://github.com/krakend/krakend-ce/issues/488#issuecomment-1157921730 says that this is by design ; but this example from the documentation: https://www.krakend.io/docs/extending/plugin-modifiers/#building-the-plugin says otherwise.
Is the documentation outdated and it is by design that the values are empty when NOT using no-op ?
Thanks,
Hi @Zeychiel you're right that's by design and yes the documentation is wrong. Best regards.
Environment info:
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()
oninput.(ResponseWrapper)
are nil ;.Data()
on the other hand does as expectedThis issue: https://github.com/krakend/krakend-ce/issues/488#issuecomment-1157921730 says that this is by design ; but this example from the documentation: https://www.krakend.io/docs/extending/plugin-modifiers/#building-the-plugin says otherwise.
Is the documentation outdated and it is by design that the values are empty when NOT using no-op ?
Thanks,