< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事(スレッド移動)
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #14411 has been updated by artur86 (Artur Beljajev).
nobu (Nobuyoshi Nakada) wrote:
> `Net::HTTP` and `Net::POP` have `#use_ssl?` method.
> Shouldn't `URI` libraries follow them?
`#secure?` looks more concise and abstract to me, although `#use_ssl?` is good in terms of consistency. Perhaps `#secure?` might be aliased to `#use_ssl` in other `Net` classes?
----------------------------------------
Feature #14411: URI#secure?
https://bugs.ruby-lang.org/issues/14411#change-69927
* Author: artur86 (Artur Beljajev)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
I wonder if some predicate method (say #secure?) could be added to URI::Generic class. Currently the only way to query if uri is secure is:
~~~ ruby
uri.instance_of?(URI::HTTPS)
~~~
Inspired by this question: https://stackoverflow.com/questions/2212735/ruby-checking-if-uri-is-https
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>