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

A modern cross-platform HTTP client for Dart and Flutter with policies, middleware, retries, timeout, and typed errors.

example/main.dart

import 'package:oxy/oxy.dart';

Future<void> main() async {
  final client = Client(
    ClientOptions(baseUrl: Uri.parse('https://httpbin.org')),
  );

  try {
    final response = await client.post('/post', json: {'name': 'oxy'});
    final payload = await response.json<Map<String, Object?>>();
    print(payload['json']);
  } finally {
    await client.close();
  }
}
6
likes
0
points
1.22k
downloads

Publisher

verified publishermedz.dev

Weekly Downloads

A modern cross-platform HTTP client for Dart and Flutter with policies, middleware, retries, timeout, and typed errors.

Repository (GitHub)
View/report issues

Topics

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

Funding

Consider supporting this project:

github.com
opencollective.com

License

unknown (license)

Dependencies

ht, ocookie

More

Packages that depend on oxy