るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.019秒)
トップページ > バージョン:2.4.0[x] > クエリ:URI::HTTPS[x] > クラス:URI::Generic[x]

別のキーワード

  1. uri build
  2. uri extract
  3. uri new
  4. open-uri open
  5. uri regexp

ライブラリ

検索結果

URI::Generic.default_port -> Integer | nil (22.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...