Sha256: 6a7072e16bbe19e07ba134a64db6a8e5f55e05c3664744326ec5f57180cc31b2

Contents?: true

Size: 205 Bytes

Versions: 3

Compression:

Stored size: 205 Bytes

Contents

# frozen_string_literal: true

module URI
  # URI having the HTTP protocol
  class HTTP
    def canonicalize
      new_url = URLCanonicalize.canonicalize(to_s)
      ::URI.parse(new_url)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
url_canonicalize-1.0.0 lib/monkey_patches/uri.rb
url_canonicalize-0.2.1 lib/monkey_patches/uri.rb
url_canonicalize-0.2.0 lib/monkey_patches/uri.rb