Comments (5)
I got something working here
https://github.com/karuppiah7890/go-pdk/blob/add-response-exit-method/response/response.go#L60-L63
from go-pdk.
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 π
from go-pdk.
@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, kong/pdk/response.lua
). Thank you for trying out the 2.0 rc1; we will go through all raised issues this week.
from go-pdk.
Closing as fixed in #22
from go-pdk.
Thanks to @javierguerragiraldez ! π
from go-pdk.
Related Issues (20)
- Can we handle tls termination during certificate phase using kong golang pdk HOT 2
- How can I print log to log_fileοΌ HOT 11
- Unable to set path in access phase using kong.service.request.set_path HOT 1
- `kong.Request.GetHeaders` returns headers uppercased in test module HOT 2
- kong.ServiceResponse.GetRawBody() return empty string HOT 2
- feature-request: Support Tracing PDK APIs HOT 3
- Tag v_0.8.0 can't access kong.service.request.enable_buffering (method not found) HOT 1
- [Questions] How to add description or comments, and validation, default value, etc. HOT 1
- socket failed: No such file or directory HOT 9
- kong.client.authenticate should support nil values for consumer and credential HOT 1
- Test package Race detected Warning when DoHttps HOT 1
- Add init handler and invoke it after config get deserialized HOT 6
- TestEnv.ClientRes.Status is not behaving as expected when ExitStatus is called. HOT 4
- kong.ServiceResponse.GetRawBody() is not working when trying to retrieve response body HOT 4
- Question: Consumer Group Plugin HOT 2
- How can I share a Golang object between different phases quickly? HOT 2
- Missing kong.client.tls package HOT 1
- kong.Response.Exit() Hanging HOT 1
- How to set a variable to Kong Context while doing unit tests? HOT 9
- Build example plugins in CI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-pdk.