MULE-8018: Merge http connector code cleanup

That is part of a different issue that we will merge after we merge this pull request.