Project

General

Profile

Feature #14411

Updated by artur86 (Artur *) over 3 years ago

I wonder if some predicate 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