private Method

HTTPRequest.read_header(socket)

There's no documentation for this item.

Source Code

# File webrick/httprequest.rb, line 238
def read_header(socket)
  if socket
    while line = read_line(socket)
      break if /\A(#{CRLF}|#{LF})\z/om =~ line
      @raw_header << line
    end
  end
  begin
    @header = HTTPUtils::parse_header(@raw_header)
  rescue => ex
    raise  HTTPStatus::BadRequest, ex.message
  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.