oxy 0.5.0 copy "oxy: ^0.5.0" to clipboard
oxy: ^0.5.0 copied to clipboard

Policy-first HTTP client for Dart and Flutter apps, SDKs, and reusable API clients.

example/main.dart

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();
  }
}
6
likes
160
points
1.22k
downloads

Documentation

API reference

Publisher

verified publishermedz.dev

Weekly Downloads

Policy-first HTTP client for Dart and Flutter apps, SDKs, and reusable API clients.

Repository (GitHub)
View/report issues

Topics

#http #flutter #networking #middleware #api-client

Funding

Consider supporting this project:

github.com
opencollective.com

License

MIT (license)

Dependencies

ht, http_parser, ocookie

More

Packages that depend on oxy