MULE-8018: Merge http connector code cleanup

Use Buffers.wrap(), no need to use (Java) ByteBuffer and wrapper.