request_mate 0.0.3
request_mate: ^0.0.3 copied to clipboard
A lightweight HTTP client for Flutter/Dart with global configs, interceptors, and cancelable requests.
Changelog #
All notable changes to the request_mate package will be documented here.
0.0.3 - 2026-06-16 #
Fixed #
- Re-enable try/catch error handling in HTTP requests.
- Fix
ApiResponsemessage parsing fallback.
0.0.1 - 2025-09-10 #
First Stable Release #
- Initial stable release of RequestMate.
-
Features included: #
- Standard HTTP methods:
GET,POST,PUT,PATCH, andDELETE. - Multipart request support (separate from normal requests)
- Enum
RequestMateTypefor request method standardization - Global configuration in
request_mate.dart:- Base URL
- Default headers (with token)
- Logging toggle & mechanism for requests/responses
- Auto JSON decoding of responses
ApiResponsemodel for standardized results- Support for custom response mapping via
fromJson - Token management:
- Token auto-included in requests
- JWT expiry decoding & 401 Unauthorized handling
- Utilities in
network_utils.dart - Error handling via
exceptions.dart - Interceptors with
custom_interceptors.dart
- Standard HTTP methods:
0.0.1-beta.2 - 2025-09-04 #
Fixed #
- Improved validation for request configurations to prevent runtime errors.
- github repository link in pubspec.yaml corrected.
0.0.1-beta.1 Initial Beta Release #
Added #
- Basic HTTP client built on top of Dio.
- Support for HTTP methods:
GET,POST,PUT,PATCH, andDELETE. - Enum
RequestMateTypeto standardize request method usage. - Multipart request support (kept separate from normal requests).
- Global configuration setup in
request_mate.dart:- Base URL
- Default headers (including token)
- Logging mechanism for requests and responses
- Toggle for enabling/disabling logs
- Auto JSON decoding of API responses.
ApiResponsemodel for standardized responses whenuseDefaultResponseis enabled.- Support for custom response mapping using
fromJson. - Token management:
- Token automatically included in every request.
- JWT token expiry decoding support.
- Utility functions in
network_utils.dart. - Error handling via
exceptions.dart. - Interceptor support via
custom_interceptors.dart.