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



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

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