blob 35991d13d4a0c1f73d53cb62d6d9aa4ba0050445 374 bytes (raw)
$ git show v0.97.0:lib/rainbows/rev/deferred_chunk_response.rb # shows this blob on the CLI
# -*- encoding: binary -*-# :enddoc:## this is class is specific to Rev for proxying IO-derived objectsclass Rainbows::Rev::DeferredChunkResponse< Rainbows::Rev::DeferredResponsedefon_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