Sha256: c505ea01218cb36b2236831c2d5f2b2db2fd9de3b7759cf1f44adacc5587eaed

Contents?: true

Size: 483 Bytes

Versions: 26

Compression:

Stored size: 483 Bytes

Contents

# -*- encoding: binary -*-
# :enddoc:
module Rainbows::EventMachine::ResponseChunkPipe
  include Rainbows::EventMachine::ResponsePipe

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

  def notify_readable
    case data = Kgio.tryread(@io, 16384, RBUF)
    when String
      @client.write("#{data.size.to_s(16)}\r\n")
      @client.write(data)
      @client.write("\r\n")
    when :wait_readable
      return
    when nil
      return detach
    end while true
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

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