Sha256: 0e47ae1db57a4474c4c3095fa9f7f3a39d7531a4f34e55f5d3c58e3b096573e0
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
# frozen_string_literal: true module Excon module Addressable # Parser # # Parses a url using `Addressable`, setting the port to the inferred_port. # # @see : https://github.com/excon/excon/issues/384#issuecomment-42645517 # class Parser def self.parse(url) uri = ::Addressable::URI.parse(url) uri.port = uri.inferred_port unless uri.port uri end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
excon-addressable-0.3.1 | lib/excon/addressable/parser.rb |
excon-addressable-0.3.0 | lib/excon/addressable/parser.rb |