Spec-Zone.ru › Dart 2

dart:core

Конструктор Uri.https

Uri.https(
  1. Строка authority,
  2. [Строка unencodedPath,
  3. Карта<Строка, dynamic>? queryParameters]
)

Создает новый https URI из authority, пути и запроса.

Этот конструктор идентичен 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;

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/Uri/Uri.https.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API