lib/faraday/connection.rb
# Yields username and password extracted from a URI if they both exist.
#
# @param uri [URI]
# @yield [username, password] any username and password
# @yieldparam username [String] any username from URI
# @yieldparam password [String] any password from URI
# @return [void]
# @api private
Yields username and password extracted from a URI if they both exist.
Yields username and password extracted from a URI if they both exist .
def with_uri_credentials(uri)
      return unless uri.user && uri.password
      yield(Utils.unescape(uri.user), Utils.unescape(uri.password))
    end
def with_uri_credentials ( uri ) return unless uri . user && uri . password yield ( Utils . unescape ( uri . user ) , Utils . unescape ( uri . password ) ) end
Yields username and password extracted from a URI if they both exist.
Yields username and password extracted from a URI if they both exist .
None
void
uri
<not_specific>
<not_specific>
None
]
<not_specific>
any username and password
any username and password
username
<not_specific>
any username from URI
any username from URI
password
<not_specific>
any password from URI
any password from URI
api
None