On Sat, Oct 01, 2016 at 07:08:44PM -0400, spacerobot wrote:
Hi there,
> I'm trying to achieve an mechanism that for requests to certain endpoints,
> nginx makes a HTTP call to a certain server (mostly POST and DELETE), gets a
> response back, parse the response code and body, and based on the response
> code and the content of the response body, return certain HTTP status
> codes/response to the caller. Is there an existing module that can help
> achieve this?
That sounds like you want a very specific set of things to happen. It is
unlikely that that exact set of things is already in a dedicated module.
I suspect that you will find it easiest to start by using one of the
embedded-language modules and writing your logic in that language -- lua,
perl, and a version of javascript are available; probably more are too.
(If there are specific things that you need, such as issuing a http
DELETE to another url, you will want to confirm that the facility to do
that is available in the language that you choose to use.)
Good luck with it,
f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx