handlePostRequest

Handles POST requests containing JSON-RPC messages.

In JSON-response mode this suspends until a response has been produced for every request in the POST body, then completes the HTTP exchange with the collected JSON (a single object for one request, an array for a batch). Bodies without requests are acknowledged with 202 immediately. In SSE mode the responses are emitted onto the per-request SSE stream instead.