one_request 2.1.1
one_request: ^2.1.1 copied to clipboard
A Flutter package to make HTTP requests with advanced error handling, including Dio and EasyLoading.
2.1.1 - 2025-07-17 #
Fixed #
- Added comprehensive troubleshooting guide for "Failed to host lookup" errors in release mode
- Updated README with network security configuration instructions for Android and iOS
- Improved documentation for common release mode network issues
2.1.0 - 2025-07-16 #
Added #
- Type-safe, generic API (
send<T>()) - PascalCase naming (
OneRequest) - Global configuration: base URL, headers, interceptors
- Per-request customization: interceptors, cancel tokens
- Retry logic for transient errors, with exponential backoff
- Custom error handler and logger support
- Fully customizable loading and error widgets
- Error message localization support
- Offline support (caching) for GET requests (
useCacheandclearCache) - Batch requests: send multiple requests in parallel (
OneRequest.batch) - Integration/widget test support (see
test/one_request_integration_test.dart) - Improved documentation and usage examples
- Summary table and troubleshooting/FAQ in README
- Unit and integration tests for all features
Changed #
- All code samples and docs now use PascalCase and the new API
- API docs fully updated for new features
- Improved error handling and logging
- Updated dependencies
Fixed #
- Added troubleshooting guide for "Failed to host lookup" errors in release mode
- Updated README with network security configuration instructions for Android and iOS