class ElasticAPM::Transport::Connection::ModdedIO

HTTP.rb calls #rewind the body stream which IO.pipes don’t support
@api private

def self.pipe(ext_enc = nil)

def self.pipe(ext_enc = nil)
  super(ext_enc).tap do |rw|
    rw[0].define_singleton_method(:rewind) { nil }
  end
end