chore(connect): refactor connect to extract http connector

related to #CAM-2741