[ruby-core:85501] [Ruby trunk Feature#14411] URI#secure?

From: artur.beljajev@...
Date: 2018-02-11 15:45:00 UTC
List: ruby-core #85501
Issue #14411 has been updated by artur86 (Artur Beljajev).


Perhaps `https?` might work?

----------------------------------------
Feature #14411: URI#secure?
https://bugs.ruby-lang.org/issues/14411#change-70295

* 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:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next