Refactor HttpClient stream setup

closes #16510 
Nice! :+1: