read_chunked(socket, block) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/webrick/httprequest.rb, line 380
    def read_chunked(socket, block)
      chunk_size, = read_chunk_size(socket)
      while chunk_size > 0
        data = read_data(socket, chunk_size) # read chunk-data
        if data.nil? || data.bytesize != chunk_size
          raise BadRequest, "bad chunk data size."
        read_line(socket)                    # skip CRLF
        chunk_size, = read_chunk_size(socket)
      read_header(socket)                    # trailer + CRLF
      @remaining_size = 0
Register or log in to add new notes.