SDK
SDK Dart v2.x
2

Constructor #

Use this constructor to create a new instance of the Http protocol with specific Uri Dart Object https://api.dart.dev/stable/2.10.5/dart-core/Uri-class.html

Arguments #

HttpProtocol(Uri, {bool acceptBadCertificate = false});

ArgumentTypeDescription
uri
Uri
URI pointing to a Kuzzle server. See more: https://api.dart.dev/stable/2.10.5/dart-core/Uri-class.html
acceptBadCertificate
bool(false)
Accept or not bad certificate when using https

Return #

A HttpProtocol protocol instance.

Usage #

final proto = HttpProtocol(
  Uri(
    scheme: 'http',
    host: 'kuzzle',
    port: 7512
  ),
);
final kuzzle = Kuzzle(proto);