On Wed, 30 Jul 2014 10:20:51 +0200, Sönke Ludwig wrote:

  • writeJsonBody was discussed to be changed to not directly write to

the connection, but rather to first write to a special counting range
and then write again, but to the connection with content-length set.
This possibly trades a little performance for a simpler protocol.

This has now been implemented: 0ecd891