Sha256: b3558b43e210deec5f21d931079c0f49ade34c24e2ce8fa8fbbde0df2f54d89f
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 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::DeferredResponse < 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rainbows-2.1.0 | lib/rainbows/coolio/deferred_response.rb |