Project

General

Profile

Feature #14411

Updated by artur86 (Artur *) about 6 years ago

I wonder if some predicate methoe (say #secure?) method could be added to URI::Generic class. Currently the only way to query if uri is secure is: 

 ~~~ ruby 
 uri.instance_of?(URI::HTTPS) 
 ~~~ 

 It could be ~~~ ruby secure? ~~~ 

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

Back