(PDB-812) Consolidate produce-body

This patch consolidates produce-body functions for all streaming endpoints to a
new function in http/produce-body.