Uri.https 构造函数
从权威性、路径和查询创建一个新的 https
URI。
此构造函数与 Uri.http 相同,除了方案被设置为 https
。
示例
var uri = Uri.https('example.org', '/path', {'q': 'dart'});
print(uri); // https://example.org/path?q=dart
uri = Uri.https('user:password@localhost:8080', '');
print(uri); // https://user:password@localhost:8080
uri = Uri.https('example.org', 'a b');
print(uri); // https://example.org/a%20b
uri = Uri.https('example.org', '/a%2F');
print(uri); // https://example.org/a%252F
实现
factory Uri.https(String authority,
[String unencodedPath,
Map<String, dynamic>? queryParameters]) = _Uri.https;