Sha256: e14b1c9ddaf11c0a97bdfdc1543201ccdd15d6d59fb55cd9d95f55968c1a26a9

Contents?: true

Size: 375 Bytes

Versions: 27

Compression:

Stored size: 375 Bytes

Contents

# -*- encoding: binary -*-
# :enddoc:
#
# this is class is specific to Coolio for proxying IO-derived objects
class Rainbows::Coolio::ResponseChunkPipe < Rainbows::Coolio::ResponsePipe
  def on_read(data)
    @client.write("#{data.size.to_s(16)}\r\n")
    @client.write(data)
    @client.write("\r\n")
  end

  def on_close
    @client.write("0\r\n\r\n")
    super
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

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