るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.028秒)
トップページ > ライブラリ:uri[x] > クエリ:HTTP[x] > クエリ:request_uri[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 (21115.0)

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

...す。
query が nil である場合は、自身の path を返します。

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

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