GitPedia
CodingAleCR

CodingAleCR/http_interceptor

A lightweight, simple plugin that allows you to intercept request and response objects and modify them if desired.

24 Releases
Latest: 1mo ago
3.0.0Latest
CodingAleCRCodingAleCRยท1mo agoยทApril 23, 2026
GitHub

๐Ÿ“‹ What's Changed

  • v3.0.0 by @CodingAleCR in https://github.com/CodingAleCR/http_interceptor/pull/173

โœจ New Contributors

  • @shittyday made their first contribution in https://github.com/CodingAleCR/http_interceptor/pull/151
  • @iruizr7 made their first contribution in https://github.com/CodingAleCR/http_interceptor/pull/156
  • @td2thinh made their first contribution in https://github.com/CodingAleCR/http_interceptor/pull/160
  • @techouse made their first contribution in https://github.com/CodingAleCR/http_interceptor/pull/158
  • Full Changelog: https://github.com/CodingAleCR/http_interceptor/compare/2.0.0...3.0.0
2.0.0
CodingAleCRCodingAleCRยท1y agoยทJuly 7, 2024
GitHub

๐Ÿ“‹ What's Changed

  • Fix type 'Response' is not a subtype of type 'StreamedResponse' in type cast by @wilinz in https://github.com/CodingAleCR/http_interceptor/pull/132
  • feat: Simplify configuration of delay between retries by @jonasschaude in https://github.com/CodingAleCR/http_interceptor/pull/122
  • refactor!: use FutureOr to allow synchronous interceptors by @Leptopoda in https://github.com/CodingAleCR/http_interceptor/pull/144
  • docs: add ayyysh04 as a contributor for ideas by @allcontributors in https://github.com/CodingAleCR/http_interceptor/pull/146
  • fix: ci actions, docs and issues with requestTimeout configs by @CodingAleCR in https://github.com/CodingAleCR/http_interceptor/pull/147

โœจ New Contributors

  • @wilinz made their first contribution in https://github.com/CodingAleCR/http_interceptor/pull/132
  • @jonasschaude made their first contribution in https://github.com/CodingAleCR/http_interceptor/pull/122
  • @Leptopoda made their first contribution in https://github.com/CodingAleCR/http_interceptor/pull/144
  • Beta Changelog: https://github.com/CodingAleCR/http_interceptor/compare/2.0.0-beta.7...2.0.0
  • Full Changelog: https://github.com/CodingAleCR/http_interceptor/compare/1.0.2...2.0.0
2.0.0-beta.8Pre-release
CodingAleCRCodingAleCRยท2y agoยทFebruary 2, 2024
GitHub

๐Ÿ“‹ What's Changed

  • Fix type 'Response' is not a subtype of type 'StreamedResponse' in type cast by @wilinz in https://github.com/CodingAleCR/http_interceptor/pull/132

โœจ New Contributors

  • @wilinz made their first contribution in https://github.com/CodingAleCR/http_interceptor/pull/132
  • Full Changelog: https://github.com/CodingAleCR/http_interceptor/compare/2.0.0-beta.7...2.0.0-beta.8
2.0.0-beta.7Pre-release
CodingAleCRCodingAleCRยท3y agoยทJune 12, 2023
GitHub

๐Ÿ“‹ What's Changed

  • docs: add ntimesc as a contributor for ideas by @allcontributors in https://github.com/CodingAleCR/http_interceptor/pull/116
  • updated packages by @mauryagaurav947 in https://github.com/CodingAleCR/http_interceptor/pull/129

โœจ New Contributors

  • @mauryagaurav947 made their first contribution in https://github.com/CodingAleCR/http_interceptor/pull/129
  • Full Changelog: https://github.com/CodingAleCR/http_interceptor/compare/2.0.0-beta.6...2.0.0-beta.7
2.0.0-beta.6Pre-release
CodingAleCRCodingAleCRยท3y agoยทAugust 10, 2022
GitHub

๐Ÿ“‹ What's Changed

  • โœจ&nbsp;&nbsp;Added: `Future<bool> shouldInterceptRequest()` and `Future<bool> shouldInterceptResponse()`. This enables individual interceptor checks and conditional intercepting configurations.
  • โœจ&nbsp;&nbsp;Added: `bodyBytes` to `Request.copyWith`. This adds support to set and modify the body as a stream of bytes.
  • โ—๏ธ๐Ÿ› &nbsp;&nbsp;Changed: `RetryPolicy` to be `Future<bool>` instead of `bool` so that you can support different exception retrying scenarios (See #115).
  • ๐Ÿ“–&nbsp;&nbsp;Changed: example project to showcase updated Flutter 3.0, new library APIs and `MultipartRequest` handling.
  • Full Changelog: https://github.com/CodingAleCR/http_interceptor/compare/2.0.0-beta.5...2.0.0-beta.6
2.0.0-beta.5Pre-release
CodingAleCRCodingAleCRยท4y agoยทMarch 11, 2022
GitHub

๐Ÿ“‹ What's Changed

  • โœจ&nbsp;&nbsp;Added: request timeout handler by @javiermrz in https://github.com/CodingAleCR/http_interceptor/pull/108
  • ๐Ÿ“–&nbsp;&nbsp;Changed: add javiermrz as a contributor for code by @allcontributors in https://github.com/CodingAleCR/http_interceptor/pull/111

โœจ New Contributors

  • @javiermrz made their first contribution in https://github.com/CodingAleCR/http_interceptor/pull/108
  • Full Changelog: https://github.com/CodingAleCR/http_interceptor/compare/2.0.0-beta.4...2.0.0-beta.5
2.0.0-beta.4Pre-release
CodingAleCRCodingAleCRยท4y agoยทJanuary 25, 2022
GitHub

๐Ÿ“‹ What's Changed

  • โ—๏ธ๐Ÿ›  Changed: `shouldAttemptRetryOnException` will now also pass the `BaseRequest`.
  • ๐Ÿšฆ Tests: Updated tests.
  • ๐Ÿž Fixed: `MultipartRequest` does not get intercepted correctly (has missing fields).
  • ๐Ÿž Fixed: `MultipartRequest` ignores retry policy.
  • ๐Ÿž Fixed: Changing `body` causes the headers to change and ignore previous interceptions (i.e. content-type headers are overridden).
  • ๐Ÿž Fixed: `copyWith` was missing fields
  • ๐Ÿšฆ Tests: Updated tests.

โœจ New Contributors

  • @vixez made their first contribution in https://github.com/CodingAleCR/http_interceptor/pull/103
  • Full Changelog: https://github.com/CodingAleCR/http_interceptor/compare/2.0.0-beta.2...2.0.0-beta.4
2.0.0-beta.2Pre-release
CodingAleCRCodingAleCRยท4y agoยทNovember 14, 2021
GitHub

๐Ÿ“‹ What's Changed

  • fix: intercepting body causes headers to be reset
  • Full Changelog: https://github.com/CodingAleCR/http_interceptor/compare/2.0.0-beta.1...2.0.0-beta.2
2.0.0-beta.1Pre-release
CodingAleCRCodingAleCRยท4y agoยทNovember 14, 2021
GitHub

๐Ÿ“‹ What's Changed

  • โ—๏ธ๐Ÿ› &nbsp;&nbsp;Changed: Renamed `Method` to use `HttpMethod` and refactored helper functions into extensions (`StringToMethod`, and `MethodToString`).
  • โ—๏ธ๐Ÿ› &nbsp;&nbsp;Changed: `InterceptorContract` to use `BaseRequest` and `BaseResponse` instead of custom models.
  • โ—๏ธ๐Ÿ› &nbsp;&nbsp;Removed: `RequestData` and `ResponseData` since the classes are no longer used.
  • โœจ&nbsp;&nbsp;Added: Support for intercepting `Request`,`StreamedRequest` and `MultipartRequest`.
  • โœจ&nbsp;&nbsp;Added: Support for intercepting `Response`,`StreamedResponse` and `MultipartRequest`.
  • โœจ&nbsp;&nbsp;Added: Extensions for `BaseRequest`, `Request`,`StreamedRequest` and `MultipartRequest` that allows copying requests through a `copyWith` method.
  • โœจ&nbsp;&nbsp;Added: Extensions for `BaseResponse`, `Response`,`StreamedResponse` and `IOStreamedResponse` that allows copying responses through a `copyWith` method.
  • ๐Ÿ“–&nbsp;&nbsp;Changed: example project to showcase updated APIs.
  • + 1 more

โœจ New Contributors

  • @lukaskurz made their first contribution in https://github.com/CodingAleCR/http_interceptor/pull/98
  • Full Changelog: https://github.com/CodingAleCR/http_interceptor/compare/1.0.2...2.0.0-beta.1
1.0.2
CodingAleCRCodingAleCRยท4y agoยทAugust 8, 2021
GitHub

๐Ÿ“– Changed: example project to showcase RetryPolicy usage. ๐Ÿž Fixed: parameters were missing in requests of type POST, PUT, PATCH, and DELETE. ๐Ÿž Fixed: int or other non-string parameters are not being added to request. Thanks to @ Contributor meysammahfouzi ๐Ÿž Fixed: body is not sent in delete requests despite being accepted as parameter. Thanks to @MaciejZuk

1.0.1
CodingAleCRCodingAleCRยท4y agoยทJuly 10, 2021
GitHub

๐Ÿ“‹ Changes

  • โœจ&nbsp;&nbsp;Changed: `ResponseData` now has `request` to allow checking on the request that triggered the response. Thanks to @II11II
  • ๐Ÿž&nbsp;&nbsp;Fixed: Use `queryParametersAll` when creating `RequestData`. Thanks to @Mawi137
  • ๐Ÿ“–&nbsp;&nbsp;Fixed: `README` to include `required` keywords needed. Thanks to @meysammahfouzi
  • ๐Ÿšฆ&nbsp;&nbsp;Tests: Improved testing and documentation.
1.0.0
CodingAleCRCodingAleCRยท5y agoยทJune 12, 2021
GitHub

๐Ÿ“‹ Changes

  • โ—๏ธ๐Ÿ› &nbsp;&nbsp;Changed: Renamed `HttpClientWithInterceptor` to `InterceptedClient`.
  • โ—๏ธ๐Ÿ› &nbsp;&nbsp;Changed: Renamed `HttpWithInterceptor` to `InterceptedHttp`.
  • โ—๏ธ๐Ÿ› &nbsp;&nbsp;Removed: `badCertificateCallback` from `InterceptedClient` and `InterceptedHttp` in order to fully support Flutter Web ๐ŸŒ . In order to use refer to the migration guide.
  • โœจ&nbsp;&nbsp;Added: Array parameters on `RequestData` following a similar principle than `http`'s `queryParametersAll` .
  • โœจ&nbsp;&nbsp;Changed: `ResponseData` now has `bodyBytes` to allow encoding or decoding in the format desired.
  • โœจ&nbsp;&nbsp;Changed: Migrated tests to use `test` package instead of `flutter_test`.
  • โœจ&nbsp;&nbsp;Changed: More tests and coverage, this is a work in progress.
  • ๐Ÿ—‘ &nbsp;&nbsp;Removed: Package no longer depends on Flutter, which means that it can be used with standalone Dart projects.
0.4.1
CodingAleCRCodingAleCRยท5y agoยทMarch 10, 2021
GitHub

๐Ÿ“‹ Changes

  • ๐Ÿ› &nbsp;&nbsp;Changed: Pre initialized `headers` and `params` on `RequestData`. This was a missed change on null-safety migration.
0.4.0
CodingAleCRCodingAleCRยท5y agoยทMarch 9, 2021
GitHub

๐Ÿ“‹ Changes

  • โ—๏ธโœจ&nbsp;&nbsp;Added: String extension to allow `toUri()` usage when importing the library. Since `http` dropped support for string url usage and since Dart does not yet support function overloading, we had to implement an alternative through extensions.
  • โœจ&nbsp;&nbsp;Added: Flutter web support ๐ŸŒ &nbsp;&nbsp;(`badCertificateCallback` and `findProxy` features are not supported on Flutter Web due to browser limitations)
  • ๐Ÿ› &nbsp;&nbsp;Changed: Upgraded `http` to `0.13.0`.
  • ๐Ÿ› &nbsp;&nbsp;Changed: Upgraded `effective_dart` to `1.3.0`.
  • ๐Ÿ› &nbsp;&nbsp;Changed: Upgraded Dart `sdk` to `>=2.12.0 <3.0.0`. (Yay! Sound null safety! ๐ŸŽ‰)
  • ๐Ÿ—‘&nbsp;&nbsp;Removed: `meta` is removed since Dart's null safety now covers all uses inside this plugin
0.3.3
CodingAleCRCodingAleCRยท5y agoยทNovember 3, 2020
GitHub

๐Ÿ“‹ Changes

  • Changed: Plugin no longer depends on the `flutter/foundation.dart`, instead it uses `meta` plugin which allows for usage on non flutter environments.
  • Changed: README now features a contribution and a roadmap sections for improving visibility on the project's future.
  • Changed: `badCertificateCallback` is now available to use without the experimental tag.
0.3.2
CodingAleCRCodingAleCRยท5y agoยทJuly 11, 2020
GitHub

๐Ÿ“‹ ๐Ÿ“ Changelog

  • Changed: Example now showcases exception handling.
  • Changed: README now showcases exception handling.
  • Fixed: Interceptor no longer using custom exceptions, instead it rethrows in the case that the retry policy is not set or if it has reached max attempts.
0.3.1
CodingAleCRCodingAleCRยท5y agoยทJuly 4, 2020
GitHub

๐Ÿ“‹ ๐Ÿ“ Changelog

  • Fixed: Retry Policy's `shouldAttemptRetryOnResponse` was synchronous which would not allow async token updates. (Thanks to @AsynchronySuperWes! ๐ŸŽ‰)
  • Fixed: Retry Policy would only trigger once when using `HttpClientWithInterceptor`.
  • Fixed: Retry Policy would use the `http` Response class, which would force plugin users to add http plugin separately.
  • Experimental: `badCertificateCallback` allows you to use self-signing certificates.
0.3.0
CodingAleCRCodingAleCRยท6y agoยทApril 24, 2020
GitHub

๐Ÿ“‹ Changelog

  • Added: RetryPolicy. It allows to attempt retries on a request when an exception occurs or when a condition from the response is met.
  • Fixed: URI type urls not concatenating parameters.
0.2.0
CodingAleCRCodingAleCRยท6y agoยทJanuary 29, 2020
GitHub

๐Ÿ“‹ Changelog

  • Added: Unit testing for a few of the files.
  • Modified: Android and iOS projects both in the plugin and the example now use Kotlin/Swift.
  • Modified: Android projects both in the plugin and the example now use AndroidX namespaces.
  • Fixed: Last '&' character was not removed from parametized URLs.
  • Fixed: Duplicate GET parameters when using `get`.
0.1.1
CodingAleCRCodingAleCRยท6y agoยทSeptember 18, 2019
GitHub

๐Ÿ“‹ Changes

  • Fixed: HTTP Methods have misaligned parameters. Now they are called via named parameters to avoid type mismatch exceptions when being used.
0.1.0
CodingAleCRCodingAleCRยท6y agoยทSeptember 18, 2019
GitHub

๐Ÿ“‹ Changes

  • Added: Query Parameters to GET requests, it allows you to set proper parameters without having to add them to the URL beforehand.
  • Modified: Documentation for the example to include the new Query Parameters usage.
0.0.3
CodingAleCRCodingAleCRยท6y agoยทSeptember 18, 2019
GitHub

๐Ÿ“‹ Changes

  • Added: Documentation for the example.
0.0.2
CodingAleCRCodingAleCRยท6y agoยทSeptember 18, 2019
GitHub

๐Ÿ“‹ Changes

  • Fixed: All the warnings regarding plugin publication.
0.0.1
CodingAleCRCodingAleCRยท6y agoยทSeptember 18, 2019
GitHub

๐Ÿ“‹ Changes

  • Added: Initial plugin implementation.
  • Added: Example of usage for the plugin.
  • Added: README.md and LICENSE files.