528件ヒット
[1-100件を表示]
(0.015秒)
クラス
-
URI
:: Generic (528)
キーワード
- + (12)
- - (12)
- == (12)
- absolute (12)
- absolute? (12)
- coerce (12)
- component (12)
-
default
_ port (12) -
find
_ proxy (12) - fragment (12)
- fragment= (12)
- hierarchical? (12)
- host (12)
- host= (12)
- hostname (12)
- hostname= (12)
- merge (12)
- merge! (12)
- normalize (12)
- normalize! (12)
- opaque (12)
- opaque= (12)
- parser (12)
- password (12)
- password= (12)
- path (12)
- path= (12)
- port (12)
- port= (12)
- query (12)
- query= (12)
- registry (12)
- registry= (12)
- relative? (12)
-
route
_ from (12) -
route
_ to (12) - scheme (12)
- scheme= (12)
- select (12)
-
to
_ s (12) - user (12)
- user= (12)
- userinfo (12)
- userinfo= (12)
検索結果
先頭5件
-
URI
:: Generic # -(src) -> URI :: Generic (3111.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:0x201002... -
URI
:: Generic # route _ from(src) -> URI :: Generic (3111.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:0x201002... -
URI
:: Generic # route _ to(dst) -> URI :: Generic (3110.0) -
自身から dst への相対パスを返します。
...自身から dst への相対パスを返します。
@param dst URI を文字列かURIオブジェクトで与えます。
例:
require 'uri'
p URI.parse('http://example.com/').route_to('http://example.com/foo/bar.html')
#=> #<URI::Generic:0x20100198 URL:foo/bar.html>... -
URI
:: Generic # +(rel) -> URI :: Generic (3105.0) -
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
...結した新しい URI オブジェクトを生成して返します。
3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。
@param rel 連結したいパスを文字列か URI オブジェクトで......uire 'uri'
p URI.parse('http://example.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo/bar.html>
URI('http://a/b/c/d;p?q').merge('?y') #=> #<URI::HTTP:0xb7ca2e2c URL:http://a/b/c/d;p?y>
URI('http://a/b/c/d;p?q').merge('/./g') #=> #<URI::HTTP......0xb7ca2738 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('/../g') #=> #<URI::HTTP:0xb7ca2008 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('../../../g') #=> #<URI::HTTP:0xb7ca1888 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('../../../../g') #=> #<URI::HTTP:0xb7ca10a4 URL:htt... -
URI
:: Generic # merge(rel) -> URI :: Generic (3105.0) -
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
...結した新しい URI オブジェクトを生成して返します。
3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。
@param rel 連結したいパスを文字列か URI オブジェクトで......uire 'uri'
p URI.parse('http://example.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo/bar.html>
URI('http://a/b/c/d;p?q').merge('?y') #=> #<URI::HTTP:0xb7ca2e2c URL:http://a/b/c/d;p?y>
URI('http://a/b/c/d;p?q').merge('/./g') #=> #<URI::HTTP......0xb7ca2738 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('/../g') #=> #<URI::HTTP:0xb7ca2008 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('../../../g') #=> #<URI::HTTP:0xb7ca1888 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('../../../../g') #=> #<URI::HTTP:0xb7ca10a4 URL:htt... -
URI
:: Generic # normalize -> URI :: Generic (3104.0) -
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと 構成要素がなければ '/' をセットします。
...
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと
構成要素がなければ '/' をセットします。
例:
require 'uri'
u = URI.parse('http://Example.Com')
p u.to_s #=> "http://Example.Com"
p u.normalize.to_s... -
URI
:: Generic # hostname -> String | nil (3025.0) -
自身の hostname を文字列で返します。また、URI::Generic#host が設 定されていない場合は nil を返します。
...URI::Generic#host が設
定されていない場合は nil を返します。
このメソッドは URI::Generic#host に IPv6 アドレスが設定されていた
場合はブラケットを削除した文字列を返しますがそれ以外は同じ文字列を返し
ます。
require 'uri'......u = URI("http://[::1]/bar")
p u.hostname # => "::1"
p u.host # => "[::1]"... -
URI
:: Generic # component -> [Symbol] (3009.0) -
self.class.component を返します。
...self.class.component を返します。
@see URI::Generic.component... -
URI
:: Generic # default _ port -> Integer | nil (3009.0) -
self.class.default_port を返します。
...self.class.default_port を返します。
@see URI::Generic.default_port...