Class: URI::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/monkey_patches/uri.rb

Overview

URI having the HTTP protocol

Instance Method Summary collapse

Instance Method Details

#canonicalizeObject



5
6
7
8
# File 'lib/monkey_patches/uri.rb', line 5

def canonicalize
  new_url = URLCanonicalize.canonicalize(to_s)
  ::URI.parse(new_url)
end