Class: ElasticAPM::Transport::Connection::ModdedIO Private

Inherits:
IO
  • Object
show all
Defined in:
lib/elastic_apm/transport/connection.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

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

Class Method Summary collapse

Class Method Details

.pipe(ext_enc = nil) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
21
22
# File 'lib/elastic_apm/transport/connection.rb', line 18

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