http_requester 0.0.4
SDKflutter
Platformandroidiosmacos
A versatile HTTP client for Flutter, `http_requester` simplifies network requests by providing an easy-to-use interface for making HTTP calls, caching responses with `api_cache_manager`, and logging detailed request and response data using `logger`. Perfect for developers who want a seamless, efficient, and well-logged networking experience in their Flutter applications.
Using the native HTTP and cache data and log the responses
Features
- Logging Made Easy
- Caching Made Easy
- Image uploading Made Easy
Getting started
flutter pub add http_requester
import "package:http_requester.dart"
Example
test() async {
HttpRequesterPayload payload = HttpRequesterPayload(
url: 'https://example/com/abc',
body: {'key': 'value'},
headers: {'key': 'value'},
requestType: RequestType.get,
shouldCache: true,
invalidateCachesAfter: Duration(days: 1),
);
HttpRequesterResponse response =
await HttpRequester.i.request(payload: payload);
MyModel model = MyModel.fromJson(response.decodedResponse);
}