request help: how i use cosocket and parse http1.1 responsebody in body_filter #5702
Unanswered
zhangweidongyyl
asked this question in
Q&A
Replies: 1 comment
-
the issue is not relevant to the project, I will turn it into a discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue description
local wholedata = "resp:"
while true do
local line, err, partial = readline()
if not line then
ngx.say("failed to read a line: ", err)
break
end
--ngx.say("successfully read a line: ", line)
end
how i parse http1.1 responsebody and responseheader in cosocket
Environment
apisix version
):uname -a
):nginx -V
oropenresty -V
):curl http://127.0.0.1:9090/v1/server_info
to get the info from server-info API):luarocks --version
):Beta Was this translation helpful? Give feedback.
All reactions