Wrapping http-streams in a structured intermediary response