An HTTP response is a structured message containing a status code, headers, and optionally a body. In an NGINX Rust integration, the response body moves from a Rust String into NGINX-managed buffers. section 4.6
Calculator response
A calculator handler evaluates the request body, formats the result as text, and calls write_response(request, &response_body, 200). Sending “3 4 * 2 -” with curl produces “10”.



