request_mate 0.0.3 copy "request_mate: ^0.0.3" to clipboard
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 ApiResponse message parsing fallback.

0.0.2 - 2025-09-05 #

Fixed #

  • Fix readme example code snippets for better clarity.

0.0.1 - 2025-09-10 #

First Stable Release #

  • Initial stable release of RequestMate.
  • Features included: #

    • Standard HTTP methods: GET, POST, PUT, PATCH, and DELETE.
    • Multipart request support (separate from normal requests)
    • Enum RequestMateType for 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
    • ApiResponse model 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

0.0.1-beta.3 - 2025-09-05 #

Fixed #

  • Fix validationStatus allowing all status to be true.

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, and DELETE.
  • Enum RequestMateType to 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.
  • ApiResponse model for standardized responses when useDefaultResponse is 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.
4
likes
160
points
20
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight HTTP client for Flutter/Dart with global configs, interceptors, and cancelable requests.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio, flutter

More

Packages that depend on request_mate