def mk_conn(path, headers = {}, opts = {})
      url = format('%s://%s%s', net[:scheme], net[:endpoint],
                   [net[:api_base], path].uri_concat)
      set_opts = { url:     Addressable::URI.encode(url),
                   headers: net[:headers].merge(headers) }
      Faraday.new(set_opts.merge(opts))
    end
def mk_conn(path, headers = {}, opts = {})
      url = format('%s://%s%s', net[:scheme], net[:endpoint],
                   [net[:api_base], path].uri_concat)
      set_opts = { url:     Addressable::URI.encode(url),
                   headers: net[:headers].merge(headers) }
      Faraday.new(set_opts.merge(opts))
    end
Create a Faraday connection object. The server comes from the
 endpoint passed to the initializer in the 'creds' hash; the
 root of the URI is dynamically derived by the #setup_endpoint
 method.

 @param path [String] uri path
 @param headers [Hash] additional headers
 @param request_opts [Hash] Faraday request parameters
 @return [URI::HTTPS]