FalkonClientConfig class
Immutable configuration snapshot for FalkonClient.
Use FalkonClientConfig.builder for a readable construction API.
Constructors
-
FalkonClientConfig({required String baseUrl, Map<
String, String> defaultHeaders = const {'Content-Type' : 'application/json; charset=utf-8'}, Duration timeout = const Duration(seconds: 30), int maxRetries = 0, List<Interceptor> interceptors = const [], bool parseErrorBodies = false}) -
const
Properties
- baseUrl → String
-
Scheme + host (+ optional port) prepended to every relative path.
Example:
https://api.example.comfinal -
defaultHeaders
→ Map<
String, String> -
Applied to every request unless RequestOptions.headers overrides.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
interceptors
→ List<
Interceptor> -
Seed interceptors registered before the first request.
final
- maxRetries → int
-
Maximum retry attempts for transient failures (0 = no retries).
final
- parseErrorBodies → bool
-
When
true, non-2xx responses whose body is valid JSON are still forwarded to JsonParser instead of becomingHttpExceptions. Useful for APIs that embed error detail in structured JSON.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
Global request deadline. Individual requests may tighten this via
RequestOptions.timeout; they cannot loosen it.
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