class Faraday::Connection

def with_uri_credentials(uri)

Other tags:
    Api: - private

Returns:
  • (void) -

Other tags:
    Yieldparam: password - any password from URI
    Yieldparam: username - any username from URI

Other tags:
    Yield: - any username and password

Parameters:
  • uri (URI) --
def with_uri_credentials(uri)
  return unless uri.user && uri.password
  yield(Utils.unescape(uri.user), Utils.unescape(uri.password))
end