create static method
Future<RhttpCompatibleClient>
create({
- ClientSettings? settings,
- List<
Interceptor> ? interceptors,
Creates a new HTTP client asynchronously. Use this method if your app is already running to avoid blocking the UI.
Implementation
static Future<RhttpCompatibleClient> create({
ClientSettings? settings,
List<Interceptor>? interceptors,
}) async {
final client = await RhttpClient.create(
settings: (settings ?? const ClientSettings()).digest(),
interceptors: interceptors,
);
return RhttpCompatibleClient._(client);
}