Refactor HttpClient stream setup

closes #16510