るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.099秒)
トップページ > 種類:特異メソッド[x] > バージョン:2.3.0[x] > クエリ:uri[x] > クエリ:default_port[x]

別のキーワード

  1. _builtin default
  2. generic default_port
  3. socket ai_default
  4. socket ip_default_multicast_ttl

ライブラリ

クラス

検索結果

URI::Generic.default_port -> Integer | nil (87577.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.default_port # => 636
URI::M...