[#217] Reuse HttpUtil components

* Use public interfaces for reusable functions