add todo
This commit is contained in:
@@ -27,10 +27,13 @@ local no_exception, resp, resp_err = pcall(httpc.request_uri, httpc, remote_url,
|
||||
method = "GET",
|
||||
})
|
||||
|
||||
--TODO: send resp.body to Flask API (ai-api) -> convert_mxml_to_xml() -> XML string
|
||||
--local xml = ai-api.convert_mxml_to_xml(resp.body)
|
||||
--ngx.say(xml)
|
||||
|
||||
ngx.say("RESP -> ", pl.write(resp))
|
||||
---- save the content to a file
|
||||
local f = assert(io.open('test.jpg', 'wb')) -- open in "binary" mode
|
||||
f:write(resp.body)
|
||||
--
|
||||
f:close()
|
||||
--ngx.say("RESP -> ", pl.write(resp))
|
||||
------ save the content to a file
|
||||
--local f = assert(io.open('test.jpg', 'wb')) -- open in "binary" mode
|
||||
--f:write(resp.body)
|
||||
----
|
||||
--f:close()
|
||||
|
||||
Reference in New Issue
Block a user