authenticatingUri static method
Implementation
static String authenticatingUri(
String uri, String username, String password) {
final parsedUri = Uri.parse(uri);
return Uri(
scheme: parsedUri.scheme,
userInfo: '$username:$password',
host: parsedUri.host,
port: parsedUri.port,
pathSegments: parsedUri.pathSegments,
queryParameters: parsedUri.queryParameters.isNotEmpty
? parsedUri.queryParameters
: null)
.toString();
}