From: duerst@... Date: 2018-01-29T01:27:41+00:00 Subject: [ruby-core:85201] [Ruby trunk Feature#14411] URI#secure? Issue #14411 has been updated by duerst (Martin D��rst). `#use_ssl?` will answer what it is being asked, namely whether SSL is used or not. Aliasing that to `#secure?` will give the wrong impression; there are many different ways to use SSL and still not be 'secure'. So please avoid method names that can give the wrong impression. ---------------------------------------- Feature #14411: URI#secure? https://bugs.ruby-lang.org/issues/14411#change-69948 * 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: