HttpCloudSyncAdapter class
HTTP REST API cloud sync adapter implementation.
Sends scan results as JSON payloads to configurable HTTP endpoints.
- Implemented types
Constructors
-
HttpCloudSyncAdapter({required String baseUrl, Map<
String, String> ? headers, Duration timeout = const Duration(seconds: 30)}) -
Constructs an HttpCloudSyncAdapter.
const
Properties
- baseUrl → String
-
Base URL endpoint for the sync API.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
Optional authorization headers.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
Request timeout duration.
final
Methods
-
delete(
String id) → Future< bool> -
Deletes a scan result from cloud storage by ID.
override
-
download(
{DateTime? since}) → Future< List< ScanResult> > -
Downloads scan results from cloud storage.
override
-
isAvailable(
) → Future< bool> -
Checks connectivity / health of the cloud endpoint.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
upload(
ScanResult result, {Map< String, String> ? metadata}) → Future<bool> -
Uploads a single scan result to cloud storage.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited