Project

General

Profile

Actions

Feature #14411

open

URI#secure?

Added by artur86 (Artur *) over 3 years ago. Updated over 3 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:85156]

Description

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:

uri.instance_of?(URI::HTTPS)

Inspired by this question: https://stackoverflow.com/questions/2212735/ruby-checking-if-uri-is-https

Actions

Also available in: Atom PDF