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

A modern, feature-rich HTTP client for Dart with Web API compatibility, supporting fetch-like syntax, request/response handling, and cross-platform adapters.

example/main.dart

import 'package:oxy/oxy.dart';

Future<void> main() async {
  final form = FormData();
  form.append("key", FormDataEntry.text("Value"));
  form.append("File", FormDataEntry.file(Stream.empty()));

  final res = await oxy(
    Request(
      "https://webhook.site/3d677b67-b4ea-4c3b-9066-b439bd8579e3",
      method: "POST",
      body: Body.formData(form),
    ),
  );

  print(await res.text());
}
2
likes
160
points
86
downloads

Publisher

verified publishermedz.dev

Weekly Downloads

A modern, feature-rich HTTP client for Dart with Web API compatibility, supporting fetch-like syntax, request/response handling, and cross-platform adapters.

Repository (GitHub)

Topics

#http #fetch #web #request #response

Documentation

API reference

Funding

Consider supporting this project:

github.com
opencollective.com

License

MIT (license)

Dependencies

mime

More

Packages that depend on oxy