Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > webrick/httpsライブラリ > WEBrick::HTTPRequestクラス > parse_uri
parse_uri(str, scheme = "http")