264件ヒット
[201-264件を表示]
(0.030秒)
種類
- インスタンスメソッド (253)
- 特異メソッド (11)
ライブラリ
- uri (264)
キーワード
- + (11)
- - (11)
- == (11)
- absolute (11)
- absolute? (11)
- coerce (11)
-
default
_ port (11) -
find
_ proxy (11) - fragment (11)
- hostname (11)
- hostname= (11)
- merge (11)
- merge! (11)
- normalize (11)
- normalize! (11)
- opaque (11)
- path (11)
- query (11)
- relative? (11)
-
route
_ from (11) -
route
_ to (11) - select (11)
-
to
_ s (11) - userinfo= (11)
検索結果
先頭5件
-
URI
:: Generic # hostname -> String | nil (7.0) -
自身の hostname を文字列で返します。また、URI::Generic#host が設 定されていない場合は nil を返します。
...自身の hostname を文字列で返します。また、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 # opaque -> String | nil (7.0) -
自身の opaque を文字列で返します。設定されていない場合は nil を返します。
...自身の opaque を文字列で返します。設定されていない場合は nil を返します。
例:
require 'uri'
p URI.parse('http://example.com/').opaque #=> nil
p URI.parse('mailto:nospam@localhost').opaque #=> "nospam@localhost"
p URI.parse('urn:ietf:rfc:1149').opaque... -
URI
:: Generic # query -> String | nil (7.0) -
自身の query を文字列で返します。設定されていない場合は nil を返します。
...自身の query を文字列で返します。設定されていない場合は nil を返します。
例:
require 'uri'
p URI.parse('http://example.com/?hoge').query #=> "hoge"... -
URI
:: Generic # relative? -> bool (7.0) -
自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。
...自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').relative? #=> false
p URI.parse('./').relative? #=> true... -
URI
:: Generic # select(*components) -> [String] (7.0) -
指定された components に対応する構成要素を文字列の配列として返します。
...字列の配列として返します。
@param components 構成要素名をシンボルで指定します。
例:
require 'uri'
uri = URI.parse('http://myuser:mypass@my.example.com/test.rbx')
p uri.select(:userinfo, :host, :path)
# => ["myuser:mypass", "my.example.com", "/test.rbx"]... -
URI
:: Generic . default _ port -> Integer | nil (7.0) -
スキームに対応するデフォルトのポート番号を整数で返します。
...するデフォルトのポート番号を整数で返します。
require 'uri'
URI::Generic.default_port # => nil
URI::FTP.default_port # => 21
URI::HTTP.default_port # => 80
URI::HTTPS.default_port # => 443
URI::LDAP.default_port # => 389
URI::LDAPS....