Welcome! Log In Create A New Profile

Advanced

Re: module which handles POST request help (Maxim Dounin)

Ben Mesander via nginx
September 19, 2023 06:24PM
Hi Maxim,

Thank you for your helpful response! I have made (partial) changes to my
code to reflect your comments. I better understand the phase mechanism now,
thank you.


> If you actually want to handle such requests yourself,
> consider instead using a content handler. In a content handler
> request finalization happens automatically, and there is no need
> to recover phase processing, so reading the request body is more
> or less trivial. An example code can be seen in the development
> guide:
>
> http://nginx.org/en/docs/dev/development_guide.html#http_request_body


I think in this case I definitely want to use a content handler. I will
point out one item I found confusing is the example cited doesn't show how
to hook up the phase handler to nginx - it will never be called. I am
looking at other modules in order to understand how this is done.

Best Regards,
Ben
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: module which handles POST request help (Maxim Dounin)

Ben Mesander via nginx September 19, 2023 06:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 247
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready