CelestHttpClient constructor
CelestHttpClient({
- NativeSecureStorage? secureStorage,
- Authenticator? authenticator,
- Client? baseClient,
- Logger? logger,
Implementation
CelestHttpClient({
NativeSecureStorage? secureStorage,
Authenticator? authenticator,
http.Client? baseClient,
Logger? logger,
}) : _authenticator = authenticator ??
Authenticator(
secureStorage: secureStorage ?? NativeSecureStorage(),
),
_ownsInner = baseClient == null,
_inner = baseClient ?? createHttpClient(),
_logger = logger;