Sha256: 43b2a8a048aa1dc9c76925d229d78e918d425c815fff4192084f15265bb5ea99

Contents?: true

Size: 422 Bytes

Versions: 27

Compression:

Stored size: 422 Bytes

Contents

# -*- encoding: binary -*-
# :enddoc:
#
# this is class is specific to Coolio for writing large static files
# or proxying IO-derived objects
class Rainbows::Coolio::ResponsePipe < Coolio::IO
  def initialize(io, client, body)
    super(io)
    @client, @body = client, body
  end

  def on_read(data)
    @client.write(data)
  end

  def on_close
    @body.respond_to?(:close) and @body.close
    @client.next!
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
rainbows-5.2.1 lib/rainbows/coolio/response_pipe.rb
rainbows-5.2.0 lib/rainbows/coolio/response_pipe.rb
rainbows-5.1.1 lib/rainbows/coolio/response_pipe.rb
rainbows-5.1.0 lib/rainbows/coolio/response_pipe.rb
rainbows-5.0.0.5.ge717 lib/rainbows/coolio/response_pipe.rb
rainbows-5.0.0 lib/rainbows/coolio/response_pipe.rb
rainbows-4.7.0 lib/rainbows/coolio/response_pipe.rb
rainbows-4.6.2 lib/rainbows/coolio/response_pipe.rb
rainbows-4.6.1 lib/rainbows/coolio/response_pipe.rb
rainbows-4.6.0.4.g4108 lib/rainbows/coolio/response_pipe.rb
rainbows-4.6.0 lib/rainbows/coolio/response_pipe.rb
rainbows-4.5.0 lib/rainbows/coolio/response_pipe.rb
rainbows-4.4.3 lib/rainbows/coolio/response_pipe.rb
rainbows-4.4.2 lib/rainbows/coolio/response_pipe.rb
rainbows-4.4.1.1.gd5c8c lib/rainbows/coolio/response_pipe.rb
rainbows-4.4.1 lib/rainbows/coolio/response_pipe.rb
rainbows-4.4.0 lib/rainbows/coolio/response_pipe.rb
rainbows-4.3.1 lib/rainbows/coolio/response_pipe.rb
rainbows-4.3.0 lib/rainbows/coolio/response_pipe.rb
rainbows-4.2.0 lib/rainbows/coolio/response_pipe.rb