Http connection wrapper.