MULE-8018: Merge http connector code cleanup

Why do you recommend that?. This was extracted from a grizzly example to retrieve a big file.