[#63498244] Extracts methods from connection.rb into Adaptor, http classes
Final refactor