dryvPacks

@dryv/dart-client-sdkv0.1.0

A typed Dart client SDK for the application's HTTP API.

Dart Client SDKClientsUnitPublished 7 days ago2 downloads

dryv pack add @dryv/dart-client-sdk
356 BRaw ↗
text
/// How generated API clients reach the server.
///
/// Implement this with `package:http`, `dio`, or a test double. [send]
/// returns the decoded JSON response body, or null when there is none.
abstract interface class DryvTransport {
  Future<Object?> send(
    String method,
    String path, {
    Object? body,
    Map<String, String> query,
  });
}