528件ヒット
[1-100件を表示]
(0.252秒)
ライブラリ
- uri (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 # coerce(oth) -> [URI , URI] (6108.0) -
引数 oth をパースして [パース後の oth, self] の配列を返します。
...返します。
@param oth URI オブジェクトか文字列を指定します。
例:
require 'uri'
uri = URI.parse("http://my.example.com")
uri.coerce("http://foo.com")
# => [#<URI::HTTP:0x00000000bcb028 URL:http://foo.com/>, #<URI::HTTP:0x00000000d92178 URL:http://my.example.com>]... -
URI
:: Generic # component -> [Symbol] (6102.0) -
self.class.component を返します。
...self.class.component を返します。
@see URI::Generic.component... -
URI
:: Generic # hierarchical? -> bool (6102.0) -
自身に path が設定されているなら true を返します。そうでない場合は false を返します。
自身に path が設定されているなら true を返します。そうでない場合は false を返します。 -
URI
:: Generic # scheme -> String | nil (6102.0) -
自身の scheme を文字列で返します。設定されていない場合は nil を返します。
...自身の scheme を文字列で返します。設定されていない場合は nil を返します。... -
URI
:: Generic # scheme=(s) (6102.0) -
自身の scheme を設定します。
...自身の scheme を設定します。
@param s 自身の scheme を表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。... -
URI
:: Generic # select(*components) -> [String] (6102.0) -
指定された components に対応する構成要素を文字列の配列として返します。
...指定された components に対応する構成要素を文字列の配列として返します。
@param components 構成要素名をシンボルで指定します。
例:
require 'uri'
uri = URI.parse('http://myuser:mypass@my.example.com/test.rbx')
p uri.select(:userinfo, :host, :pat......h)
# => ["myuser:mypass", "my.example.com", "/test.rbx"]... -
URI
:: Generic # +(rel) -> URI :: Generic (3150.0) -
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
...6 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。
@param rel 連結したいパスを文字列か URI オブジェクトで与えます。
例:
require 'uri'
p URI.parse('http://example.com/') +......=> #<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:http://a/g>... -
URI
:: Generic # merge(rel) -> URI :: Generic (3150.0) -
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
...6 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。
@param rel 連結したいパスを文字列か URI オブジェクトで与えます。
例:
require 'uri'
p URI.parse('http://example.com/') +......=> #<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:http://a/g>... -
URI
:: Generic # -(src) -> URI :: Generic (3102.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:0x20100256 URL:...