http_cached_client 1.0.3 copy "http_cached_client: ^1.0.3" to clipboard
http_cached_client: ^1.0.3 copied to clipboard

A lightweight Flutter package that wraps the standard `http` client with a caching mechanism

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add http_cached_client

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  http_cached_client: ^1.0.3

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:http_cached_client/http_cache_client.dart';
import 'package:http_cached_client/key_generator/default_key_generator.dart';
import 'package:http_cached_client/key_generator/key_generator.dart';
import 'package:http_cached_client/utils.dart';
1
likes
160
points
57
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter package that wraps the standard `http` client with a caching mechanism

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on http_cached_client