MULE-8018: Merge http connector code cleanup

Improve (if we continue using this). I'd do the following:
byte [] byteArry = new byte[BUFFER_SIZE];
Buffer buffer = Buffers.wrap(byteArray, memoryManager);
inputStream.read(byteArray);