クラス
-
URI
:: FTP (2) -
URI
:: Generic (8) -
URI
:: LDAP (10) -
URI
:: MailTo (2)
キーワード
- + (1)
- attributes (1)
- attributes= (1)
- coerce (1)
-
default
_ port (1) - dn (1)
- dn= (1)
- extensions (1)
- extensions= (1)
- filter (1)
- filter= (1)
-
find
_ proxy (1) - headers (1)
- headers= (1)
- merge (1)
- password (1)
- password= (1)
-
route
_ to (1) - scope (1)
- scope= (1)
- typecode (1)
- typecode= (1)
検索結果
先頭5件
-
URI
:: FTP # typecode -> String | nil (18358.0) -
ファイル転送のタイプを文字列で返します。"a" はテキスト、"i" はバイナリ、"d" はディレクトリを表します。 設定されていない場合は nil を返します。
ファイル転送のタイプを文字列で返します。"a" はテキスト、"i" はバイナリ、"d" はディレクトリを表します。
設定されていない場合は nil を返します。 -
URI
:: FTP # typecode=(t) (18328.0) -
ファイル転送のタイプを文字列で指定します。
...ル転送のタイプを文字列で指定します。
@param t ファイル転送のタイプを文字列で指定します。"a" はテキスト、"i" はバイナリ、"d" はディレクトリを表します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。... -
URI
:: Generic # default _ port -> Integer | nil (18310.0) -
self.class.default_port を返します。
...self.class.default_port を返します。
@see URI::Generic.default_port... -
URI
:: Generic # find _ proxy -> URI | nil (18310.0) -
プロキシ URI を返します。
...プロキシ URI を返します。
プロキシ URI は http_proxy, ftp_proxy, no_proxy などの環境変数から取得
します。適切なプロキシが見つからない場合は nil を返します。
環境変数は大文字にしたもの(HTTP_PROXY, FTP_PROXY, NO_PROXYなど)も調べ......設定されうるためです。そのため、
HTTP_PROXY(環境変数が大文字小文字を区別しない場合は http_proxy も) は使
われません。代わりに CGI_HTTP_PROXY が使われます。
@raise BadURIError selfが相対URIであった場合に発生します。
@see ENV... -
URI
:: Generic # password -> String | nil (18310.0) -
自身の password を文字列で返します。設定されていない場合は nil を返します。
自身の password を文字列で返します。設定されていない場合は nil を返します。 -
URI
:: Generic # password=(s) (18310.0) -
自身の password を設定します。
...い場合には例外が発生します。
@param s 自身の password を表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError userinfo と registry を同時に設定した場合に発生します。... -
URI
:: LDAP # dn -> String (18310.0) -
自身の Distinguished Name を文字列で返します。
自身の Distinguished Name を文字列で返します。 -
URI
:: LDAP # dn=(s) (18310.0) -
自身の Distinguished Name を文字列で設定します。
自身の Distinguished Name を文字列で設定します。
@param s 自身の Distinguished Name を文字列で指定します。 -
URI
:: MailTo # headers -> [[String]] (18310.0) -
自身のヘッダーを文字列の配列の配列として設定します。
...自身のヘッダーを文字列の配列の配列として設定します。
例:
require 'uri'
m = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
p m.headers #=> [["subject", "subscribe"], ["cc", "myaddr"]]... -
URI
:: MailTo # headers=(s) (18310.0) -
自身のヘッダーを文字列で設定します。
...を文字列で設定します。
@param s ヘッダーを表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
例:
require 'uri'
m = URI.parse("mailto:nospam@example.com")
m.headers = URI.escape("subject=hello hello")... -
URI
:: LDAP # attributes -> String (9010.0) -
自身の Attribute を文字列で返します。
自身の Attribute を文字列で返します。 -
URI
:: LDAP # attributes=(s) (9010.0) -
自身の Attribute を文字列で設定します。
自身の Attribute を文字列で設定します。
@param s 自身の Attribute を文字列で設定します。 -
URI
:: LDAP # extensions -> String (9010.0) -
自身の extensions を文字列で返します。
自身の extensions を文字列で返します。 -
URI
:: LDAP # extensions=(s) (9010.0) -
自身の extensions を文字列で設定します。
自身の extensions を文字列で設定します。
@param s 自身の extensions を文字列で設定します。 -
URI
:: LDAP # filter -> String (9010.0) -
自身の filter を文字列で返します。
自身の filter を文字列で返します。 -
URI
:: LDAP # filter=(s) (9010.0) -
自身の filter を文字列で設定します。
自身の filter を文字列で設定します。
@param s 自身の filter を文字列で設定します。 -
URI
:: LDAP # scope -> String (9010.0) -
自身の Scope を文字列で返します。
自身の Scope を文字列で返します。 -
URI
:: LDAP # scope=(s) (9010.0) -
自身の Scope を文字列で設定します。
自身の Scope を文字列で設定します。
@param s 自身の Scope を文字列で設定します。 -
URI
:: Generic # route _ to(dst) -> URI :: Generic (310.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 (118.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 (118.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 # coerce(oth) -> [URI , URI] (28.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.ex...