class EventMachine::Protocols::HttpClient2::Request

def receive_chunk_header ln


Cf RFC 2616 pgh 3.6.1 for the format of HTTP chunks.
--
def receive_chunk_header ln
  if ln.length > 0
    chunksize = ln.to_i(16)
    if chunksize > 0
      @conn.set_text_mode(ln.to_i(16))
    else
      @content = @content ? @content.join : ''
      @chunk_trailer = true
    end
  else
    # We correctly come here after each chunk gets read.
    # p "Got A BLANK chunk line"
  end
end