`local response = ngx.location.capture("/some/api/endpoint" )`
I would not recommend doing this, though. Nginx internals are rather complicated in my experience.
So better off to just log to a file and monitor the tail of that and send the data off with a seperate script?
`local response = ngx.location.capture("/some/api/endpoint" )`
I would not recommend doing this, though. Nginx internals are rather complicated in my experience.