るりまサーチ

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

別のキーワード

  1. net/http get
  2. http start
  3. http get
  4. net/http start
  5. net/http delete

クラス

キーワード

検索結果

URI::Generic#absolute -> bool (18122.0)

自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。

...自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。

例:
require 'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false...

URI::Generic#absolute? -> bool (6122.0)

自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。

...自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。

例:
require 'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false...

URI::Generic#-(src) -> URI::Generic (20.0)

与えられた URI を表す src からの相対パスを返します。

...えられた URI を表す src からの相対パスを返します。

@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。

例:
require 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x...

URI::Generic#route_from(src) -> URI::Generic (20.0)

与えられた URI を表す src からの相対パスを返します。

...えられた URI を表す src からの相対パスを返します。

@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。

例:
require 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x...