8件ヒット
[1-8件を表示]
(0.258秒)
ライブラリ
- uri (8)
キーワード
- + (1)
- coerce (1)
-
default
_ port (1) -
find
_ proxy (1) - merge (1)
- password (1)
- password= (1)
-
route
_ to (1)
検索結果
先頭5件
-
URI
:: Generic # find _ proxy(env = ENV) -> URI | nil (63907.0) -
プロキシ URI を返します。
プロキシ URI を返します。
プロキシ URI は http_proxy, ftp_proxy, no_proxy などの環境変数から取得
します。適切なプロキシが見つからない場合は nil を返します。
環境変数は大文字にしたもの(HTTP_PROXY, FTP_PROXY, NO_PROXYなど)も調べら
れる事に注意してください。
ただし、CGI環境下では http_proxy と HTTP_PROXY は特別扱いされます。
HTTP_PROXY はヘッダ Proxy: に設定されうるためです。そのため、
HTTP_PROXY(環境変数が大文字小文字を区別しない場合は http... -
URI
:: Generic # default _ port -> Integer | nil (54907.0) -
self.class.default_port を返します。
...self.class.default_port を返します。
@see URI::Generic.default_port... -
URI
:: Generic # password -> String | nil (54907.0) -
自身の password を文字列で返します。設定されていない場合は nil を返します。
自身の password を文字列で返します。設定されていない場合は nil を返します。 -
URI
:: Generic # password=(s) (54607.0) -
自身の password を設定します。
自身の password を設定します。
自身に user が設定されていない場合には例外が発生します。
@param s 自身の password を表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError userinfo と registry を同時に設定した場合に発生します。 -
URI
:: Generic # route _ to(dst) -> URI :: Generic (36907.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 # merge(rel) -> URI :: Generic (36715.0) -
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。
@param rel 連結したいパスを文字列か URI オブジェクトで与えます。
例:
require 'uri'
p URI.parse('http://example.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo... -
URI
:: Generic # coerce(oth) -> [URI , URI] (36325.0) -
引数 oth をパースして [パース後の oth, self] の配列を返します。
引数 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 # +(rel) -> URI :: Generic (27715.0) -
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。
@param rel 連結したいパスを文字列か URI オブジェクトで与えます。
例:
require 'uri'
p URI.parse('http://example.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo...