ClientBrowser constructor
ClientBrowser(
{ - String endPoint = 'https://cloud.appwrite.io/v1',
- bool selfSigned = false,
})
Implementation
ClientBrowser({
String endPoint = 'https://cloud.appwrite.io/v1',
bool selfSigned = false,
}) : _endPoint = endPoint {
_httpClient = BrowserClient();
_headers = {
'content-type': 'application/json',
'x-sdk-name': 'Dart',
'x-sdk-platform': 'server',
'x-sdk-language': 'dart',
'x-sdk-version': '12.1.0',
'X-Appwrite-Response-Format': '1.6.0',
};
config = {};
assert(_endPoint.startsWith(RegExp("http://|https://")),
"endPoint $_endPoint must start with 'http'");
}