http_api 0.10.0-dev.4
http_api: ^0.10.0-dev.4 copied to clipboard
A simple yet powerful wrapper around http package with interceptors/middleware support, along with response caching.
0.10.0-dev.4 #
- Upgraded packages versions
- Updated default headers
- Do not depend on dart:io
0.9.0 #
- Initial nullsafety migration
- Added
onProgresscallback
0.8.3 #
- Added [FormData] class.
- Removed
multipartandisMultipartvalues fromApiRequest. - Added [FormData] serialization.
- Removed
- Renamed
apiRequestproperty inApiResponseclass torequest.
0.7.3 #
- Added support for ApiRequest and ApiResponse serialization (simplify caching).
- Added toJson methods and fromJson constructors.
0.7.2+2 #
- Added
ApiLink.nextconstructor to allows in-place link creation. - ⚠️
ApiLinknow cannot be used as mixin. - Added
ApiLink.nextexample to the readme.
0.7.1 #
-
Removed flutter from dependency (add crossplatform support).
- Replaced Flutter
Keyclass withCacheKey.
- Replaced Flutter
-
Cache system changes:
-
CacheKeyclass now operates onStringvalues. -
Create
CacheManagerclass. -
Added
Cachemixin that adds cache toBaseApiinstances.class Api extends BaseApi with Cache { @override CacheManager createCacheManager() => InMemoryCache(); /// ** your custom Api class implementation ** }
-
-
Now displaying
hexStringfor id's in logger link. -
Added
createdAtproperty toApiRequest. -
Made
saveCachefunction optionally asynchronous. -
url is now a required positional argument in BaseApi class constructor.
-
Improved readme file.
-
Bug fixes:
- Fixed example app compilation error.
- Disallowed chaining DebugLink in release apps when only one link is provided.
0.6.0 #
- Renamed current
DebugLinkclass toLoggerLink. - Added abstract
DebugLinkclass. DebugLinks are special types of links that will never be chained (will be skipped) in release builds. - Replaced internal
ApiExceptions withApiErrors.
0.5.0 #
- Added cache support.
- Added id property to ApiRequest and ApiResponse objects.
0.4.2 #
- Added
okproperty toApiResponse - Added
redirectproperty toApiResponse
0.4.1 #
- Added
FileField.fromStreamconstructor.
0.4.0 #
BaseApinow uses Uri path fromurlargument (not only host) also port and queryParameters are copied.- Added unit tests
0.3.0 #
Breaking changes
- Renamed
ApiBasetoBaseApi - Replaced
BaseApicallmethod withsendmethod which accepts the argumentApiRequest.
0.2.0 #
- Add example
- Fixed request duration bug (DebugLink)
0.1.0+3 #
- Initial release.