-
Notifications
You must be signed in to change notification settings - Fork 50
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
kong.response.exit method not implemented #16
Comments
I got something working here https://github.com/karuppiah7890/go-pdk/blob/add-response-exit-method/response/response.go#L60-L63 |
I could raise a PR if that looks sane. I tried it out and it worked here - https://github.com/karuppiah7890/kong-plugin-kafka-upstream/blob/master/kafka_upstream.go#L13-L18 I can tell the rationale behind the implementation - it was mostly assumptions though 😅 |
@karuppiah7890 PRs are very welcome. Do note however that some PDK methods require special handling - serialization/deserialization mostly - so it's important to check how it works on the Lua side as well (in this case, |
Closing as fixed in #22 |
Thanks to @javierguerragiraldez ! 😄 |
I'm talking about this method here - http://docs.konghq.com/1.4.x/pdk/kong.response/#kongresponseexitstatus-body-headers
I see a TODO here for the same in golang pdk
go-pdk/response/response.go
Line 60 in b5672ac
I'm interested to analyze and raise a PR if that's okay. In any case, I'm going to try it out. If I back out at any point, I'll report back so that someone else can pick it up 😄
The text was updated successfully, but these errors were encountered: