You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "hongdingyi (via GitHub)" <gi...@apache.org> on 2023/02/16 10:42:17 UTC
[GitHub] [apisix] hongdingyi opened a new issue, #8875: how to use ext-plugin-pre-req change apisix request body。 base on apisix-go-plugin-runner
hongdingyi opened a new issue, #8875:
URL: https://github.com/apache/apisix/issues/8875
### Description
how to use ext-plugin-pre-req change apisix request body。 base on apisix-go-plugin-runner
### Environment
- APISIX version (run `apisix version`):
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] hongdingyi commented on issue #8875: how to use ext-plugin-pre-req change apisix request body。 base on apisix-go-plugin-runner
Posted by "hongdingyi (via GitHub)" <gi...@apache.org>.
hongdingyi commented on issue #8875:
URL: https://github.com/apache/apisix/issues/8875#issuecomment-1434461049
> Not yet supported
Can you support me。thank you
func(r *Request) SetBody(body []byte)error{
builder := util.GetBuilder()
varName := builder.CreateString(string(body))
ei.VarStart(builder)
ei.VarAddName(builder, varName)
varInfo := ei.VarEnd(builder)
_, err := r.askExtraInfo(builder, ei.InfoRespBody + 1, varInfo)
util.PutBuilder(builder)
return err
}
if info_type == extra_info.RespBody + 1 then
local info = req:Info()
local var_req = extra_info_var.New()
var_req:Init(info.bytes, info.pos)
local var_name = var_req:Name()
core.request.set_body(var_name)
res = 0
function _M.set_body(new_body_data)
ngx.req.set_body_data(new_body_data)
ngx.req.set_header("Content-Length", tostring(#new_body_data))
end
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] soulbird commented on issue #8875: how to use ext-plugin-pre-req change apisix request body。 base on apisix-go-plugin-runner
Posted by "soulbird (via GitHub)" <gi...@apache.org>.
soulbird commented on issue #8875:
URL: https://github.com/apache/apisix/issues/8875#issuecomment-1433980755
Not yet supported
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] how to use ext-plugin-pre-req change apisix request body。 base on apisix-go-plugin-runner [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8875:
URL: https://github.com/apache/apisix/issues/8875#issuecomment-1925252725
This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] hongdingyi commented on issue #8875: how to use ext-plugin-pre-req change apisix request body。 base on apisix-go-plugin-runner
Posted by "hongdingyi (via GitHub)" <gi...@apache.org>.
hongdingyi commented on issue #8875:
URL: https://github.com/apache/apisix/issues/8875#issuecomment-1434462472
I really need your help。I've already implemented the code
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] how to use ext-plugin-pre-req change apisix request body。 base on apisix-go-plugin-runner [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8875:
URL: https://github.com/apache/apisix/issues/8875#issuecomment-1951064106
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] how to use ext-plugin-pre-req change apisix request body。 base on apisix-go-plugin-runner [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8875: how to use ext-plugin-pre-req change apisix request body。 base on apisix-go-plugin-runner
URL: https://github.com/apache/apisix/issues/8875
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org