ngx_http_output_filter passes an NGINX request and an ngx_chain_t buffer chain into HTTP output processing, sending the response data to the client. section 4.6
A response-writing path typically:
- Allocates and fills an ngx_buf_t with response bytes. section 4.6
- Places the buffer into an ngx_chain_t whose next pointer is null for a single-buffer response. section 4.6
Calculator response
After evaluating a request body, a Rust NGINX handler formats the result, calls write_response, and uses ngx_http_output_filter to deliver the HTTP response.
