private Method

HTTPRequest.read_chunk_size(socket)

There's no documentation for this item.

Source Code

# File webrick/httprequest.rb, line 296
def read_chunk_size(socket)
  line = read_line(socket)
  if /^([0-9a-fA-F]+)(?:;(\S+))?/ =~ line
    chunk_size = $1.hex
    chunk_ext = $2
    [ chunk_size, chunk_ext ]
  else
    raise HTTPStatus::BadRequest, "bad chunk `#{line}'."
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.