ApiBridgeConfig class
Full runtime configuration for a named generated API package connection.
Constructors
-
ApiBridgeConfig({required Uri baseUri, AuthStrategy auth = const CookieStrategy(), bool cookiesEnabled = true, Map<
String, String> defaultHeaders = const <String, String>{}, ApiCacheConfig cache = const ApiCacheConfig(), ApiRetryConfig retry = const ApiRetryConfig(), ApiLoggingConfig logging = const ApiLoggingConfig(), ApiLogger logger = const DeveloperApiLogger(), ApiClientIdentityProvider? clientIdentity, Duration connectTimeout = const Duration(seconds: 15), Duration sendTimeout = const Duration(seconds: 30), Duration receiveTimeout = const Duration(seconds: 30)}) -
const
Properties
- auth → AuthStrategy
-
final
- baseUri → Uri
-
final
- cache → ApiCacheConfig
-
final
- clientIdentity → ApiClientIdentityProvider?
-
final
- connectTimeout → Duration
-
final
-
final
-
defaultHeaders
→ Map<
String, String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → ApiLogger
-
final
- logging → ApiLoggingConfig
-
final
- receiveTimeout → Duration
-
final
- retry → ApiRetryConfig
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendTimeout → Duration
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited