class Excon::Addressable::Parser

Parser

Parses a url using `Addressable`, setting the port to the inferred_port.

@see : github.com/excon/excon/issues/384#issuecomment-42645517 @see : github.com/excon/excon/issues/384#issuecomment-362618298

Public Class Methods

parse(url) click to toggle source
Calls superclass method
# File lib/excon/addressable/parser.rb, line 13
def self.parse(url)
  uri = super
  uri.port = uri.inferred_port unless uri.port
  uri
end