ApiGetRequestOptions class
- Inheritance
-
- Object
- ApiRequestOptions
- ApiGetRequestOptions
Constructors
-
ApiGetRequestOptions({Map<
String, String> ? headers, Map<String, String> ? cookies, bool noAuth = false, bool? retry, bool retryUnsafeRequest = false, String? idempotencyKey, CancelToken? cancelToken, String? operationId, ApiCallLogOptions? log, List<String> invalidateCacheTags = const <String>[], List<String> invalidateCachePaths = const <String>[], bool clearActiveSessionCache = false, bool cache = true, ApiCachePolicy? cachePolicy, Duration? cacheTtl, bool forceRefresh = false, bool invalidateCache = false, List<String> cacheTags = const <String>[], List<String> varyHeaders = const <String>[]}) -
const
Properties
- cache → bool
-
Directly disables both cache reads and writes for this request.
final
- cachePolicy → ApiCachePolicy?
-
final
-
cacheTags
→ List<
String> -
final
- cacheTtl → Duration?
-
final
- cancelToken → CancelToken?
-
finalinherited
- clearActiveSessionCache → bool
-
finalinherited
-
finalinherited
- forceRefresh → bool
-
Skips cache reads and refreshes storage from a successful network result.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
finalinherited
- idempotencyKey → String?
-
finalinherited
- invalidateCache → bool
-
final
-
invalidateCachePaths
→ List<
String> -
finalinherited
-
invalidateCacheTags
→ List<
String> -
finalinherited
- log → ApiCallLogOptions?
-
finalinherited
- noAuth → bool
-
finalinherited
- operationId → String?
-
finalinherited
- retry → bool?
-
finalinherited
- retryUnsafeRequest → bool
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
varyHeaders
→ List<
String> -
final
Methods
-
copyWith(
{Map< String, String> ? headers, Map<String, String> ? cookies, bool? noAuth, bool? retry, bool clearRetry = false, bool? retryUnsafeRequest, String? idempotencyKey, CancelToken? cancelToken, String? operationId, ApiCallLogOptions? log, bool clearLog = false, List<String> ? invalidateCacheTags, List<String> ? invalidateCachePaths, bool? clearActiveSessionCache, bool? cache, ApiCachePolicy? cachePolicy, bool clearCachePolicy = false, Duration? cacheTtl, bool clearCacheTtl = false, bool? forceRefresh, bool? invalidateCache, List<String> ? cacheTags, List<String> ? varyHeaders}) → ApiGetRequestOptions -
override
-
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