oxy 0.5.0
oxy: ^0.5.0 copied to clipboard
Policy-first HTTP client for Dart and Flutter apps, SDKs, and reusable API clients.
import 'package:oxy/oxy.dart';
Future<void> main() async {
try {
final response = await fetch('https://httpbin.org/get');
final payload = await response.json<Map<String, Object?>>();
print(payload['url']);
} finally {
// Close the shared client when a short-lived script is done.
await client.close();
}
}