Refactor HttpClient stream setup

closes #16510 
tests seem to indicate that `output` can be empty here