るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.044秒)
トップページ > バージョン:2.6.0[x] > クエリ:String[x] > クエリ:request_uri[x] > クラス:URI::HTTP[x]

別のキーワード

  1. request new
  2. http request_put
  3. http request_get
  4. http request_post
  5. http request_head

ライブラリ

検索結果

URI::HTTP#request_uri -> String (54628.0)

自身の「path + '?' + query」を文字列で返します。 query が nil である場合は、自身の path を返します。

自身の「path + '?' + query」を文字列で返します。
query が nil である場合は、自身の path を返します。

path が空である場合には、path は「'/'」であるとします。

例:
require 'uri'
u = URI.parse("http://example.com/search?q=xxx")
p u.request_uri #=> "/search?q=xxx"