Hi all,
<div><br></div><div>I've started to develop a RESTful interface onto MongoDB as an Nginx Module. I've started to work on PUT requests, and I'm just wondering about a couple of things with the body handler.</div>
<div><br></div><div>My content handler registers the body handler using ngx_http_read_client_request_body.</div><div><br></div><div>When this gets called, if everything goes correctly, I either want to send 204 No Content or 303 See Other. Therefore, no body. What should I be calling ngx_http_finalize_request with? I'm currently passing zero-length buffers, and I'm getting alerts, so it must be wrong...</div>
<div><br></div><div>On the other hand, if something goes wrong, I suspect I should still be calling ngx_http_finalize_request, right? If so, what should the arguements be then?</div><div><br></div><div>Thanks for your help. My code can be found at <a href="https://github.com/alexchamberlain/ngx-mongodb">https://github.com/alexchamberlain/ngx-mongodb</a>. I'd be very interested on any feedback, but please bear in mind I'm relatively inexperienced, so I expect to make mistakes and really won't mind any friendly advice.</div>
<div><br></div><div>Alex Chamberlain</div>