Tidy whitespace
Make http protocol reuse shared fetch logic