blob 5e456e9d4843672fd9b6a5eafc0e0ae870958681 375 bytes (raw)
$ git show em-deferred:lib/rainbows/coolio/response_chunk_pipe.rb # shows this blob on the CLI
# -*- encoding: binary -*-# :enddoc:## this is class is specific to Coolio for proxying IO-derived objectsclass Rainbows::Coolio::ResponseChunkPipe< Rainbows::Coolio::ResponsePipedefon_read(data)@client.write("#{data.size.to_s(16)}\r\n")@client.write(data)@client.write("\r\n")enddef on_close
@client.write("0\r\n\r\n")superendend