lib/reel/connection.rb
# Read a chunk from the request
Read a chunk from the request
Read a chunk from the request
def readpartial(size = BUFFER_SIZE)
      raise StateError, "can't read in the `#{@request_state}' state" unless @request_state == :body
      chunk = @parser.chunk
      unless chunk || @parser.finished?
        @parser << @socket.readpartial(size)
        chunk = @parser.chunk
      end
      chunk
    end
def readpartial ( size = BUFFER_SIZE ) raise StateError , "can't read in the `#{@request_state}' state" unless @request_state == :body chunk = @parser . chunk unless chunk || @parser . finished? @parser << @socket . readpartial ( size ) chunk = @parser . chunk end chunk end
Read a chunk from the request
Read a chunk from the request
size
<not_specific>