oxy 0.0.3
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.
0.0.3 #
- Remove content-length header removal in native fetch
- Add signal abort check before request processing
0.0.2 #
Breaking Changes #
- AbortController removed:
AbortController
class has been removed. UseAbortSignal()
constructor directly instead. - AbortSignal API simplified:
AbortSignal
now has a public constructor and includes theabort()
method directly.
Changes #
- Removed
AbortController
class - no longer needed asAbortSignal
can be created directly - Made
AbortSignal.abort()
method public - signals can now abort themselves - Removed
meta
dependency - no longer using@internal
annotations - Updated
AdapterRequest
to useAbortSignal()
instead ofAbortController().signal
Migration Guide #
Before (v0.0.1):
final controller = AbortController();
final signal = controller.signal;
// Abort the signal
controller.abort('reason');
After (v0.0.2):
final signal = AbortSignal();
// Abort the signal directly
signal.abort('reason');
0.0.1 #
First version