我可以使用nginx通过HTTP(S)连接到unix套接字。但是signald不理解HTTP,只有纯JSON。它会产生如下错误:
com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'GET': was expecting (JSONString, Number, Array, Object or token 'null', 'true' or 'false') at [Source: (Strin
我正在尝试编写一个自定义插件来转换响应体。我可以使用一个响应转换器插件,但是我的响应体json很复杂,所以我想从它中删除几个字段。我尝试使用后函数插件来编写我的定制lua代码,但是它不允许我导入cjson,所以我无法解码响应并从其中移除特定的键。我在body_filter中的lua代码:local body = cjson.decode(kong.response.get