Project

General

Profile

Actions

Feature #14411

open

URI#secure?

Added by artur86 (Artur *) about 6 years ago. Updated about 6 years ago.

Status:
Open
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

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0