code: static Request.Builder preemptivelySetAuthCredentials(
              Request.Builder builder, String userInfo, boolean isUrlBased) {
  
          if (userInfo == null)
              return builder;
  
          if (!userInfo.contains(":") || ":".equals(userInfo.trim())) {
              Log.w(TAG, "RemoteRequest Unable to parse user info, not setting credentials");
              return builder;
          }
  
          String[] userInfoElements = userInfo.split(":");
          String username = isUrlBased ? URIUtils.decode(userInfoElements[0]) : userInfoElements[0];
          String password = "";
          if (userInfoElements.length >= 2)
              password = isUrlBased ? URIUtils.decode(userInfoElements[1]) : userInfoElements[1];
          String credential = Credentials.basic(username, password);
          return builder.addHeader("Authorization", credential);
      }
docs: /*package