useBasicAuth method

ArangoDatabase useBasicAuth(
  1. String username,
  2. String password
)

Implementation

ArangoDatabase useBasicAuth(String username, String password) {
  final bytes = utf8.encode('${username}:${password}');
  final basic = base64.encode(bytes);
  _connection.setHeader('authorization', 'Basic $basic');
  return this;
}