RestConfig class
Configuración global del runtime d_rocket (capa 2 — REST with
steroids). Suele haber una sola instancia por aplicación
(dRest).
Constructors
-
RestConfig({HttpClient? httpClient, List<
RestInterceptor> interceptors = const <RestInterceptor>[], Duration defaultTimeout = const Duration(seconds: 30), Map<String, String> defaultHeaders = const <String, String>{}})
Properties
-
defaultHeaders
→ Map<
String, String> -
final
- defaultTimeout → Duration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient ↔ HttpClient
-
getter/setter pair
-
interceptors
→ List<
RestInterceptor> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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